public IActionResult DeleteEmployeeOutgoingOt(long id) { EmployeeOutgoingOt a = EmployeeOutgoingOt_repo.Find(id); if (a == null) { return(NotFound()); } EmployeeOutgoingOt_repo.Delete(a); return(Ok()); }
public IActionResult UpdateEmployeeOutgoingOt([FromBody] EmployeeOutgoingOt model) { EmployeeOutgoingOt_repo.Update(model); return(new OkObjectResult(new { EmployeeOutgoingOtID = model.EmployeeOutgoingOtId })); }
public IActionResult AddEmployeeOutgoingOt([FromBody] EmployeeOutgoingOt model) { EmployeeOutgoingOt_repo.Add(model); return(Ok(model.EmployeeOutgoingOtId)); }