Exemplo n.º 1
0
        public List <T> Obtenha(string nome)
        {
            try
            {
                using (RestauranteContexto contexto = ContextoSingleton.Instance())
                {
                    return(new List <T>());
                }
            }
            catch (Exception)
            {
                return(new List <T>());

                throw;
            }
        }
Exemplo n.º 2
0
        public RetornoServico Atualizar(T dados)
        {
            try
            {
                using (RestauranteContexto contexto = ContextoSingleton.Instance())
                {
                    return(ObtenhaRetornoServico(true));
                }
            }
            catch (Exception)
            {
                return(ObtenhaRetornoServico(false));

                throw;
            }
        }
Exemplo n.º 3
0
        public RetornoServico Excluir(int codigo)
        {
            try
            {
                using (RestauranteContexto contexto = ContextoSingleton.Instance())
                {
                    return(ObtenhaRetornoServico(true));
                }
            }
            catch (Exception)
            {
                return(ObtenhaRetornoServico(false));

                throw;
            }
        }