// GET: AddOns public async Task <ActionResult> Index() { var currentUserId = await _customerIdService.GetCustomerId(); var addOns = await _addOnRepository.GetAll().Where(x => x.CustomerId == currentUserId).OrderBy(y => y.ProductType.Name).ToListAsync(); return(View(addOns)); }
public IEnumerable <OrderDto> GetAllOrders() { _logger.LogDebug("Call GetAllOrders method"); return(_ordersRepository.GetAll().Select(o => new OrderDto(o))); }