3
I do Ubmit to save, and I want it to return in the same view, but with empty fields, a new model, so it can add again
But he always comes back with the data I filled out
My action is like this:
public ActionResult SalvarNovo(grupoViewModel model)
{
if (ModelState.IsValid)
{
Grupo entity = new Grupo();
Mapper.Map(model, entity);
grupocService.Adiciona(entity);
}
return View("Novo");
}
How do I make it return empty fields? or direct to that view again?