public AddPurchaseRecordRequest(AddPurchaseRecordDTO addPurchaseRecordDTO) { RequestDTO = addPurchaseRecordDTO; }
public async Task <IHttpActionResult> Create([FromBody] AddPurchaseRecordDTO newRecord) { var result = await _mediator.Send(new AddPurchaseRecordRequest(newRecord)); return(Ok(result.Value)); }