Exemple #1
0
 public AddPurchaseRecordRequest(AddPurchaseRecordDTO addPurchaseRecordDTO)
 {
     RequestDTO = addPurchaseRecordDTO;
 }
Exemple #2
0
        public async Task <IHttpActionResult> Create([FromBody] AddPurchaseRecordDTO newRecord)
        {
            var result = await _mediator.Send(new AddPurchaseRecordRequest(newRecord));

            return(Ok(result.Value));
        }