Exemple #1
0
        public IHttpActionResult GetAllRepgroups(FilterRepGroups filter)
        {
            if (filter == null)
            {
                filter             = new FilterRepGroups();
                filter.PageSize    = 25;
                filter.CurrentPage = 1;
            }
            var response = repository.GetRepGroups(filter, CurrentBusinessId.Value);

            return(Ok <DataResponse <EntityList <EntityRepGroups> > >(response));
        }
        public IHttpActionResult GetByFilter(FilterRepGroups filter)
        {
            var repository = new RepositoryRepGroups();

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

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