public IActionResult DeleteLeaveClosing(long id) { LeaveClosing a = LeaveClosing_repo.Find(id); if (a == null) { return(NotFound()); } LeaveClosing_repo.Delete(a); return(Ok()); }
public IActionResult UpdateLeaveClosing([FromBody] LeaveClosing model) { LeaveClosing_repo.Update(model); return(new OkObjectResult(new { LeaveClosingID = model.LeaveClosingId })); }