I do the submit to save, and I want it to return in the same view, but with the empty fields, a new model, so it can be added again
But he always comes back with the data I filled out
My action looks 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 return the fields empty? or direct to that view again?