public IActionResult DeleteLeaveSubType(long id)
        {
            LeaveSubType a = LeaveSubType_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            LeaveSubType_repo.Delete(a);
            return(Ok());
        }
 public IActionResult UpdateLeaveSubType([FromBody] LeaveSubType model)
 {
     LeaveSubType_repo.Update(model);
     return(new OkObjectResult(new { LeaveSubTypeID = model.LeaveSubTypeId }));
 }