Beispiel #1
0
        public async Task <ActionResult> AddBike()
        {
            List <BrandModel> brandModels = new List <BrandModel>();

            brandModels = await _modelManager.GetBrands();

            return(View(brandModels));
        }
Beispiel #2
0
        // 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));
            }
        }