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 })); }
public void Post([FromBody] AddRequest request) { _requestService.Create(request); }