public ActionResult Inscricao(Time time) { if (ModelState.IsValid) { timerepositorio.CadastrarTimes(time); } return View(); }
public void CadastrarTimes(Time time) { db.Time.Add(time); db.SaveChanges(); }