public IActionResult Criar(Tanque tanque) { if (ModelState.IsValid) { _TANREP.Include(tanque); return(View("Index", _TANREP.List())); } else { return(View("Criar", tanque)); } }
public void Post([FromBody] Tanque tanque) { _TREP.Include(tanque); }
public IActionResult Criar(Tanque tanque) { if (ModelState.IsValid) { _TANREP.Include(tanque); return(View("Index", _TANREP.List())); } else { return(View("Criar", tanque)); } }
public void Post([FromBody] Tanque tanque) { _TREP.Include(tanque); }