コード例 #1
0
 public void Create(AddRequest request)
 {
     _dbService.Run(cn => cn.Execute("INSERT INTO Request VALUES (@Title, @OtherTitles, @Complexity, @Notes, @CreatedBy, @ExerciseId, 0)",
                                     new { request.Title, request.OtherTitles, request.Complexity, request.Notes, request.CreatedBy, ExerciseId = request.Id }));
 }
コード例 #2
0
 public void Post([FromBody] AddRequest request)
 {
     _requestService.Create(request);
 }