Esempio n. 1
0
        public IActionResult Orders()
        {
            var          idUser  = aartistRepository.GetIdUserByUsurName(User.Identity.Name);
            var          client  = aartistRepository.GetClient(idUser);
            var          orders  = aartistRepository.GetOrdersByClent(client.Id);
            List <Order> orders1 = orders.Select(o => new Order
            {
                City          = aartistRepository.GetCityById(o.IdCity),
                Price         = o.Price,
                DateTimeEvent = o.DateEvent,
            }).ToList();

            return(View(orders1));
        }