public IHttpActionResult PostEmployee(Employee employee)
 {
     if (employeeService.Insert(employee))
     {
         return Ok();
     }
     return BadRequest();
 }
 public bool Update(Employee employee)
 {
     employeeRepository.Update(employee);
     return unitOfWork.Commit();
 }
 public bool Insert(Employee employee)
 {
     employeeRepository.Add(employee);
     return unitOfWork.Commit();
 }
 public IHttpActionResult PutEmployee(int id, Employee employee)
 {
     employee.Id = id;
     if (employeeService.Update(employee))
     {
         return Ok();
     }
     return NotFound();
 }