public async Task <IActionResult> UpdateExercisePropertyAsync([FromBody] ExercisePropertyUpdateModel exerciseUpdateModel) { return(this.ConvertResult( await exercisePropertyService.UpdatePropertyAsync(exerciseUpdateModel, userResolverService.GetUserId()))); }
public async Task <ExercisePropertyDto> UpdatePropertyAsync(ExercisePropertyUpdateModel model, int userId) { ExerciseProperty exerciseProperty = mapper.Map <ExercisePropertyUpdateModel, ExerciseProperty>(model); return(await UpsertPropertyAsync(exerciseProperty, userId)); }