예제 #1
0
 public RequestListModel(RequestFilter filter)
 {
     Filter = filter;
 }
        public ActionResult RequestsManage(string ShowStatus, string FromHidden, string ToHidden)
        {
            DateTime? from = null;
            if (!string.IsNullOrEmpty(FromHidden))
            {
                DateTime dt;
                if (DateTime.TryParse(FromHidden, CultureInfo.CreateSpecificCulture("en-US"), DateTimeStyles.AdjustToUniversal, out dt))
                    from = dt;
            }

            DateTime? to = null;
            if (!string.IsNullOrEmpty(ToHidden))
            {
                DateTime dt;
                if (DateTime.TryParse(ToHidden, CultureInfo.CreateSpecificCulture("en-US"), DateTimeStyles.AdjustToUniversal, out dt))
                    to = dt;
            }

            var filter = new RequestFilter
                {
                    Status = ShowStatus,
                    From = from,
                    To = to
                };

            var model = new AgencyRequestsViewModel();
            model.Filter = filter;
            return View(model);
        }
예제 #3
0
 public RequestListModel(RequestFilter filter)
 {
     Filter = filter;
 }
        public ActionResult RequestsManage()
        {
            var filter = new RequestFilter
            {
                Status = "All",
                From = null,
                To = null
            };

            var model = new AgencyRequestsViewModel();
            model.Filter = filter;
            return View(model);
        }