public ActionResult GetCarTwo() { List <CarDetails> list = CanYouSee.ModelList("carinfo"); return(Ok(list)); }
public JsonResult GetJson() { List <CarDetails> list = CanYouSee.ModelList("carinfo"); return(new JsonResult(list)); }
public List <CarDetails> GetCars() { List <CarDetails> list = CanYouSee.ModelList("carinfo"); return(list.ToList()); }