Example #1
0
        public IActionResult DeleteLeaveType(long id)
        {
            LeaveType a = LeaveType_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            LeaveType_repo.Delete(a);
            return(Ok());
        }