Esempio n. 1
0
        public ActionResult Evaluation()
        {
            var evaluations    = goodsService.GetAllEvaluation();
            var evaluationsDTO = evaluations.Select(item => new ViewModelEvaluation()
            {
                OrderId      = item.OrderId,
                CustomerId   = item.CustomerId,
                Evaluate     = item.Evaluate,
                EvaluationId = item.EvaluationId,
                AdminId      = item.AdminId,
                Reply        = item.Reply,
            }).ToList();

            return(View(evaluationsDTO));
        }