public IActionResult DeleteLeavePurpose(long id)
        {
            LeavePurpose a = LeavePurpose_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            LeavePurpose_repo.Delete(a);
            return(Ok());
        }
 public IActionResult UpdateLeavePurpose([FromBody] LeavePurpose model)
 {
     LeavePurpose_repo.Update(model);
     return(new OkObjectResult(new { LeavePurposeID = model.LeavePurposeId }));
 }