public async Task InsertAsync(CNWRouteDTO dto)
 {
     using (var sql = dbConnectionFactory())
     {
         await sql.ExecuteAsync($@"{DapperHelper.INSERT(TABLE, DTOFIELDS)}", dto);
     }
 }
예제 #2
0
 public async Task InsertRouteAsync(CNWRouteDTO dto)
 {
     await cnwRoutesRepository.InsertAsync(dto);
 }
예제 #3
0
        public async Task <HttpResponseMessage> InsertAsync(CNWRouteDTO dto)
        {
            await cnwService.InsertRouteAsync(dto);

            return(Request.CreateResponse(HttpStatusCode.OK, true));
        }