Example #1
0
 public async Task <IActionResult> Add([FromBody] Step step)
 {
     try
     {
         return(this.Ok(await _repository.Add(step)));
     }
     catch (Exception e)
     {
         return(this.Ok(TranslateError.Convert(e)));
     }
 }
Example #2
0
 public bool Add(StepView model)
 {
     return(_step.Add(model));
 }