Exemplo n.º 1
0
        public async Task OnGetAsync(string pageNo, string categoryId, string categoryName, CategoryTypeEnum?type, bool deleted, string dateFrom, string dateTo, string creatorId, string status)
        {
            SearchInput = new CategorySearchViewModel
            {
                PageNo = pageNo.FixPageNumber(),
                Name   = categoryName,
                Id     = categoryId,
                Type   = type,
                IncludeDeletedItems = deleted,
                CreationDateFrom    = dateFrom,
                CreationDateTo      = dateTo,
                CreatorId           = creatorId
            };

            Status = !string.IsNullOrEmpty(status)
                ? status
                : null;
            List = await _featureService.CategoryListAsync(SearchInput, false);
        }