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))); } }
public bool Add(StepView model) { return(_step.Add(model)); }