Ejemplo n.º 1
0
        public ActionResult AddBrand(Models.Brand brand)
        {
            if (ModelState.IsValid)
            {
                Entity.Brand brandDetails = new Entity.Brand()
                {
                    BrandName = brand.BrandName,
                };
                mobileBL.AddBrand(brandDetails);
                return(RedirectToAction("Create"));
            }

            return(View());
        }