public async Task SaveRepsUnilateral(UnilateralRepsVM convertedData) { var user = await _accountClient.GetCurrentClient(); UnilateralExercisesHistoryVM unilateralExercisesHistory = new UnilateralExercisesHistoryVM { Reps = convertedData.Reps, ExerciseId = convertedData.ExerciseId, UserId = user.UserId }; await _homeClient.SaveRepsUnilateral(unilateralExercisesHistory); }
public async Task <ResultVM> SaveRepsUnilateral(UnilateralExercisesHistoryVM reps) { try { ResultVM resultVM = await HttpMethods <UnilateralExercisesHistoryVM> .PostAsync(Client, reps, "/SaveRepsUnilateral"); return(resultVM); } catch (Exception ex) { return(new ResultVM { Message = ex.Message, Status = Status.Error }); } }