public List <Compensation> GetCompensationsById(String id) { if (!String.IsNullOrEmpty(id)) { return(_compensationRepository.GetCompensationsById(id)); } return(new List <Compensation>()); }