Пример #1
0
        // GET: Carrier
        public ActionResult Index(string carrierSearchkey, string statusSearchkey = "Active")
        {
            var carriers = _carrierService.GetAllCarriers();

            Enum.TryParse(statusSearchkey, out CarrierStatusEnum myStatus);
            carriers = _carrierService.ApplyFilterForIndex(carrierSearchkey, myStatus, carriers);

            return(View(carriers));
        }