示例#1
0
        public IActionResult Index()
        {
            ResponseDetails response = _apiHelper.SendApiRequest("", "slot-type/get-all", HttpMethod.Get);

            List <SlotTypeViewModel> model = JsonConvert.DeserializeObject <List <SlotTypeViewModel> > (response.Data.ToString());

            _dataProtector.ProtectSlotTypeRouteValues(model);

            return(View(model));
        }