public async Task InsertAsync(FinanceDTO dto) { using (var sql = dbConnectionFactory()) { await sql.ExecuteAsync($@"{DapperHelper.INSERT(TABLE, DTOFIELDS)}", dto); } }
public async Task InsertAsync(FinanceDTO dto) { await financeRepository.InsertAsync(dto); }
public async Task <HttpResponseMessage> InsertAsync(FinanceDTO model) { await financeService.InsertAsync(model); return(Request.CreateResponse(HttpStatusCode.OK, true)); }