public IActionResult DeleteEmployeeIncomingOt(long id) { EmployeeIncomingOt a = EmployeeIncomingOt_repo.Find(id); if (a == null) { return(NotFound()); } EmployeeIncomingOt_repo.Delete(a); return(Ok()); }
public IActionResult UpdateEmployeeIncomingOt([FromBody] EmployeeIncomingOt model) { EmployeeIncomingOt_repo.Update(model); return(new OkObjectResult(new { EmployeeIncomingOtID = model.EmployeeIncomingOtId })); }
public IActionResult AddEmployeeIncomingOt([FromBody] EmployeeIncomingOt model) { EmployeeIncomingOt_repo.Add(model); return(Ok(model.EmployeeIncomingOtId)); }