public Models.SalaVestibularResponse CriarResponse(Models.TbSalaVestibular vestibular)
        {
            Models.SalaVestibularResponse response = new Models.SalaVestibularResponse();

            response.IdSalaVestibular = vestibular.IdSalaVestibular;
            response.DsPeriodo        = vestibular.DsPeriodo;
            response.NmLocal          = vestibular.IdSalaNavigation.NmLocal;
            response.NmSala           = vestibular.IdSalaNavigation.NmSala;

            return(response);
        }
        public List <Models.SalaVestibularResponse> ListarTudo()
        {
            List <Models.TbSalaVestibular> Vestibular = db.Listar();

            List <Models.SalaVestibularResponse> Response = new List <Models.SalaVestibularResponse>();

            foreach (Models.TbSalaVestibular salavestibular in Vestibular)
            {
                Models.SalaVestibularResponse resp = CriarResponse(salavestibular);
                Response.Add(resp);
            }

            return(Response);
        }