public List <Leaves> GetAllLeavesByEmployeeId(int employee_id) { if (employee_id == 0) { return(null); } return(repo.GetAllLeavesByEmployeeId(employee_id)); }