public IHttpActionResult GetAllRoles(FilterRoles filter)
        {
            if (filter == null)
            {
                filter             = new FilterRoles();
                filter.PageSize    = 25;
                filter.CurrentPage = 1;
            }
            var response = repository.GetRoles(filter, CurrentBusinessId.Value);

            return(Ok <DataResponse <EntityList <EntityRoles> > >(response));
        }
Beispiel #2
0
        public IHttpActionResult GetByFilter(FilterRoles filter)
        {
            var repository = new RepositoryRoles();

            if (filter == null)
            {
                filter = new FilterRoles {
                    PageSize = 25, CurrentPage = 1
                }
            }
            ;
            var response = repository.GetRoles(filter, CurrentBusinessId.Value);

            return(Ok <DataResponse <EntityList <EntityRoles> > >(response));
        }