示例#1
0
        public ActionResult Cadastro()
        {
            SugestaoRepository sugestaoRepository = new SugestaoRepository();
            List <Sugestao>    sugestoes          = repository.ObterTodos();

            ViewBag.Sugestao = sugestoes;
            return(View());
        }
示例#2
0
 public HotelController()
 {
     repository         = new HotelRepository();
     sugestaoRepository = new SugestaoRepository();
 }
示例#3
0
 public SugestaoController()
 {
     repository = new SugestaoRepository();
 }