public ActionResult Cadastro(int?id) { var timeModel = new TimeModel(); timeModel.Dono = User.GetNickName(); if (id != null || id > 0) { timeModel = db.Times.Find(id); if (timeModel.Equals(null)) { return(HttpNotFound()); } } return(View(timeModel)); }