[HttpGet] api/Employee
[HttpPost] api/Employee
Return all employees.
Allow adding a new employee to the database. The information of the employee to be added is in the
following format:
{ "employeeId": 0,
"name": "string",
"gender": "string",
"dob": { "year": 0,
"month": 0,"day": 0
},
"position": "string",
"isFulltime": true
}
This api will returns:
Conflict() in case there is already an employee with the same employeeid as the one being added.
StatusCode 500 in case any other error occurs.
Ok() in case the employees is added successfully.
You can see the GivenAPIs project in the download materials folder for more details.
Using given APIs, you are asked to create web page at url/Employee/List.
Zoom
+ 100%
Close