public IActionResult DeleteEmployeeWorkingDayOt(long id) { EmployeeWorkingDayOt a = EmployeeWorkingDayOt_repo.Find(id); if (a == null) { return(NotFound()); } EmployeeWorkingDayOt_repo.Delete(a); return(Ok()); }
public IActionResult UpdateEmployeeWorkingDayOt([FromBody] EmployeeWorkingDayOt model) { EmployeeWorkingDayOt_repo.Update(model); return(new OkObjectResult(new { EmployeeWorkingDayOtID = model.EmployeeWorkingDayOtId })); }
public IActionResult AddEmployeeWorkingDayOt([FromBody] EmployeeWorkingDayOt model) { EmployeeWorkingDayOt_repo.Add(model); return(Ok(model.EmployeeWorkingDayOtId)); }