public ActionResult Create(GeneroViewModel generoViewModel) { if (ModelState.IsValid) { var genero = Mapper.Map <Genero>(generoViewModel); generoService.Add(genero); return(RedirectToAction("Index")); } return(View(generoViewModel)); }
public void Add(Genero Genero) { _generoService.Add(Genero); }