Esempio n. 1
0
        public ActionResult Add(BrandModel model)
        {
            if (ModelState.IsValid)
            {
                int result = model.Add(model);

                if (result > 0)
                {
                    return(RedirectToAction("Index"));
                }
            }

            return(View(model));
        }