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

            return(await UpsertPropertyAsync(exerciseProperty, userId));
        }