public async Task <object> Post([FromBody] ExchangeViewModel model) { MessageBase2 result = new MessageBase2(); ExchangeDto dto = ConvertHelper.ChangeType <ExchangeDto>(model); await _exchangeService.AddAsync(dto); return(result); }
public async Task <object> Post([FromBody] ExchangeViewModel model) { MessageBase2 result = new MessageBase2(); ExchangeDto dto = ConvertHelper.ChangeType <ExchangeDto>(model); await _exchangeService.AddAsync(dto); return(result); }