Пример #1
0
        public ActionResult GetCarTwo()
        {
            List <CarDetails> list = CanYouSee.ModelList("carinfo");

            return(Ok(list));
        }
Пример #2
0
        public JsonResult GetJson()
        {
            List <CarDetails> list = CanYouSee.ModelList("carinfo");

            return(new JsonResult(list));
        }
Пример #3
0
        public List <CarDetails> GetCars()
        {
            List <CarDetails> list = CanYouSee.ModelList("carinfo");

            return(list.ToList());
        }