public IEnumerable <ClientComments> GetAll() { var results = _unitOfWork.ClientCommentRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.ClientCommentMapperList(results); return(resultsmodel); } return(null); }
public IEnumerable <ClientComments> GetAllByOther(long otherid) { var results = _unitOfWork.ClientCommentRepository.GetMany(i => i.userfkid == otherid).ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.ClientCommentMapperList(results); return(resultsmodel); } return(null); }