public RoleGroupListModel Get(RoleGroupSearchFilter searchFilter) { RoleGroupListFormData formData = new RoleGroupListFormData(); SearchResult <RoleGroupDTO> searchResult = roleGroupSearch.GetDataByFilter(searchFilter); return(new RoleGroupListModel() { FormData = formData, SearchResult = searchResult }); }
public IHttpActionResult Search([FromUri] RoleGroupSearchFilter filter) { ThrowIfUserHasNoRole(readRole); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var roleGroupSearch = new RoleGroupSearch(Db)) { var data = roleGroupSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }
public IHttpActionResult Search([FromUri] RoleGroupSearchFilter filter) { string accessType = "RoleGroup_ViewAll"; ThrowIfUserCannotAccess(accessType); if (filter == null) { throw new KairosException("Missing search filter parameter"); } using (var roleGroupSearch = new RoleGroupSearch(Db)) { var data = roleGroupSearch.GetDataByFilter(filter); return(Ok(new SuccessResponse(data))); } }