예제 #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());
        }