public ActionResult Save(LogPlanoDto model) { if (ModelState.IsValid) { var LogPlano = new LogPlano(); _LogPlano.Save(model); return(RedirectToAction("List")); } else { return(RedirectToAction("Create", model)); } }
public LogPlanoController() { _LogPlano = new LogPlano(); }