예제 #1
0
        public RoleGroupListModel Get(RoleGroupSearchFilter searchFilter)
        {
            RoleGroupListFormData       formData     = new RoleGroupListFormData();
            SearchResult <RoleGroupDTO> searchResult = roleGroupSearch.GetDataByFilter(searchFilter);

            return(new RoleGroupListModel()
            {
                FormData = formData,
                SearchResult = searchResult
            });
        }
예제 #2
0
        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)));
            }
        }
예제 #3
0
        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)));
            }
        }