Example #1
0
 public IHttpActionResult PostAddNewEmployee(EmployeeDTO employeeDTO)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("Invalid Data"));
     }
     empService.AddEmployeeDTO(employeeDTO);
     return(Ok("Employee SuccessFully Added"));
 }