public IHttpActionResult GetAllDocumentTypes(FilterDocumentTypes filter)
        {
            if (filter == null)
            {
                filter             = new FilterDocumentTypes();
                filter.PageSize    = 25;
                filter.CurrentPage = 1;
            }
            var response = repository.GetDocumentTypes(filter, CurrentBusinessId);

            return(Ok <DataResponse <EntityList <EntityDocumentTypes> > >(response));
        }
Esempio n. 2
0
        public IHttpActionResult GetByFilter(FilterDocumentTypes filter)
        {
            var repository = new RepositoryDocumentTypes();

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

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