示例#1
0
        public IActionResult DeleteLeaveClosing(long id)
        {
            LeaveClosing a = LeaveClosing_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            LeaveClosing_repo.Delete(a);
            return(Ok());
        }
示例#2
0
 public IActionResult UpdateLeaveClosing([FromBody] LeaveClosing model)
 {
     LeaveClosing_repo.Update(model);
     return(new OkObjectResult(new { LeaveClosingID = model.LeaveClosingId }));
 }