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