public ServiceResponse <HeadstoneUserRole> GetAllIncluding(params Expression <Func <HeadstoneUserRole, object> >[] includes) { using (var bo = new UserRoleDAO()) { var result = bo.GetAllIncluding(includes).ToList(); if (result.Any()) { return(new ServiceResponse <HeadstoneUserRole>() { Type = ServiceResponseTypes.Success, Source = ServiceResponseSources.MsSQL, Result = result as List <HeadstoneUserRole>, }); } else { return(new ServiceResponse <HeadstoneUserRole>() { Type = ServiceResponseTypes.Error, Source = ServiceResponseSources.MsSQL, Result = new List <HeadstoneUserRole>(), }); } } }