public IActionResult DeleteEmployeeOverTimeEntitlment(long id) { EmployeeOverTimeEntitlement a = EmployeeOverTimeEntitlement_repo.Find(id); if (a == null) { return(NotFound()); } EmployeeOverTimeEntitlement_repo.Delete(a); return(Ok()); }
public IActionResult UpdateEmployeeOverTimeEntitlment([FromBody] EmployeeOverTimeEntitlement model) { EmployeeOverTimeEntitlement_repo.Update(model); return(new OkObjectResult(new { EmployeeOverTimeEntitlmentID = model.EmployeeOverTimeEntitlementId })); }