示例#1
0
        public async Task OnGetAsync(string pageNo, string facilityName, bool deleted, string dateFrom, string dateTo, string creatorId, string status)
        {
            SearchInput = new FacilitySearchViewModel
            {
                PageNo = pageNo.FixPageNumber(),
                Name   = facilityName,
                IncludeDeletedItems = deleted,
                CreatorId           = creatorId,
                CreationDateFrom    = dateFrom,
                CreationDateTo      = dateTo
            };

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