Application.Web.Controllers.LaptopsController.GetLaptopModelData C# (CSharp) Метод

GetLaptopModelData() публичный Метод

public GetLaptopModelData ( string text ) : System.Web.Mvc.JsonResult
text string
Результат System.Web.Mvc.JsonResult
        public JsonResult GetLaptopModelData(string text)
        {
            var result = this.Data.Laptops
                .All()
                .Where(x => x.Model.ToLower().Contains(text.ToLower()))
                .Select(x => new  
                {
                    Model = x.Model
                });

            return Json(result, JsonRequestBehavior.AllowGet);
        }