public async Task <ActionResult> AddBike() { List <BrandModel> brandModels = new List <BrandModel>(); brandModels = await _modelManager.GetBrands(); return(View(brandModels)); }
// GET: Customer //public ActionResult AddCustomer() //{ // return View(); //} //[HttpPost] //public ActionResult AddCustomer(CustomerModel customerModel) //{ // _modelManager.AddCustomer(customerModel); // TempData["message"] = "Customer Added!!!"; // return View("AddCustomer"); //} public async Task <ActionResult> CustomerIndex() { List <BrandModel> brandModels = new List <BrandModel>(); brandModels = await _modelManager.GetBrands(); if (brandModels == null) { return(View("Null")); } else { return(View(brandModels)); } }