Exemplo n.º 1
0
        public ActionResult Create(BeerTypeViewModelCreate source)
        {
            if (ModelState.IsValid)
            {
                _beerTypeService.CreateBeerType(source.StringType);

                return(RedirectToAction("Index"));
            }
            else
            {
                return(View(source));
            }
        }