Пример #1
0
        public ArrayList ListaAvaliacoes()
        {
            myList = new ArrayList();
            ClientReview review = new ClientReview();

            myList = review.ListarPorCliente(id);
            return(myList);
        }
Пример #2
0
        public ArrayList ListaReviews()
        {
            myList = new ArrayList();
            ClientReview cr = new ClientReview();

            myList = cr.ListarPorOficina(idShop);
            return(myList);
        }
Пример #3
0
        public void EliminaServico(int indiceServico, string user)
        {
            Budget        budget  = new Budget();
            ClientReview  reviews = new ClientReview();
            ServiceReport reports = new ServiceReport();

            budget.EliminaTodosDoServico(indiceServico);
            reviews.EliminaTodasPorCliente(user);
            reports.EliminaTodasPorCliente(user);

            ServicoSet pedido = db.ServicoSet.Single(p => p.Id.Equals(indiceServico));

            db.ServicoSet.Remove(pedido);
            db.SaveChanges();
        }
Пример #4
0
        public void Avalia(string userId, int indiceOficina, int indiceServico, string desc, int a)
        {
            ClientReview review = new ClientReview();

            review.AdicionaNova(userId, indiceOficina, indiceServico, desc, a);
        }