public MappingRoleToRoleGroupListModel Get(MappingRoleToRoleGroupSearchFilter searchFilter) { MappingRoleToRoleGroupListFormData formData = new MappingRoleToRoleGroupListFormData(); SearchResult <MappingRoleToRoleGroupDTO> searchResult = mappingRoleToRoleGroupSearch.GetDataByFilter(searchFilter); return(new MappingRoleToRoleGroupListModel() { FormData = formData, SearchResult = searchResult }); }
public IHttpActionResult Search([FromUri] MappingRoleToRoleGroupSearchFilter filter) { ThrowIfUserHasNoRole(readRole); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var mappingRoleToRoleGroupSearch = new MappingRoleToRoleGroupSearch(Db)) { var data = mappingRoleToRoleGroupSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }
public IHttpActionResult Search([FromUri] MappingRoleToRoleGroupSearchFilter filter) { string accessType = "MappingRoleToRoleGroup_ViewAll"; ThrowIfUserCannotAccess(accessType); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var mappingRoleToRoleGroupSearch = new MappingRoleToRoleGroupSearch(Db)) { var data = mappingRoleToRoleGroupSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }