public async Task AddOrderHistory(OrderHistoryInformation orderHistoryInformation)
        {
            var orderhistory = _mapper.Map <OrderHistory>(orderHistoryInformation);
            await _context.OrderHistories.AddAsync(orderhistory);

            await _context.SaveChangesAsync();
        }
示例#2
0
 public async Task EditOrderHistory(OrderHistoryInformation orderHistoryInformation)
 {
     await _repository.EditOrderHistory(orderHistoryInformation);
 }
        public async Task <IActionResult> EditOrderHistory(OrderHistoryInformation orderHistoryInformation)
        {
            await _service.EditOrderHistory(orderHistoryInformation);

            return(Ok());
        }