public async Task <IActionResult> Put(int id, [FromBody] UpdateQuotationItemRequest request) { request.QuotationID = id; bool result = await _QuotationItemAppService.updateQuotation(request); if (result) { return(Ok(result)); } return(NotFound(result)); }
public Task <bool> updateQuotation(UpdateQuotationItemRequest request) { UpdateQuotationItemCommand command = new UpdateQuotationItemCommand ( request.QuotationID, request.UnitID, request.ProductCode, request.Price ); Task <object> Quotation = (Task <object>)Bus.SendCommand(command); return(Task.FromResult((bool)Quotation.Result)); }