public ActionResult Cadastro() { SugestaoRepository sugestaoRepository = new SugestaoRepository(); List <Sugestao> sugestoes = repository.ObterTodos(); ViewBag.Sugestao = sugestoes; return(View()); }
public HotelController() { repository = new HotelRepository(); sugestaoRepository = new SugestaoRepository(); }
public SugestaoController() { repository = new SugestaoRepository(); }