Esempio n. 1
0
        /// <summary>
        /// Registers a service rating referring to a given order
        /// </summary>
        /// <param name="idEncomenda">Unique identifier for a single order</param>
        /// <param name="classServicoEntrega">Rating relating to the employee</param>
        /// <param name="classEstadoEncomenda">Rating relating to the order</param>
        public void avalia(int idEncomenda, int classServicoEntrega, int classEstadoEncomenda)
        {
            Encomenda   enc         = _eController.getEncomenda(idEncomenda);
            int         idFun       = enc.getFuncionarioID();
            Funcionario funcionario = _fController.getFuncionario(idFun);

            enc.setAvaliacao(classEstadoEncomenda);
            funcionario.AtualizaAvaliacao(classServicoEntrega);
            _context.SaveChanges();
        }