コード例 #1
0
        public async Task <IActionResult> Update(OrderLineUpdateDto orderLineUpdateDto)
        {
            if (ModelState.IsValid)
            {
                var orderLine = _mapper.Map <OrderLine>(orderLineUpdateDto);
                var result    = await _orderLineService.OrderLineUpdateWithHeaderAmountAsync(orderLine);

                if (result.Status == Status.Success)
                {
                    return(RedirectToAction("GetLines", "Home", new { orderLineUpdateDto.OrderHeaderId }));
                }
            }
            return(RedirectToAction("Index", "Home"));
        }