public DailyProgressSummary BuildCurrentDayProgress() { var progress = BuildDailyProgress(DateTime.Today); _progressRepository.SaveProgress(_localStorage.GetCurrentUserId(), new DailyProgressSummary[] { progress }); return(progress); }
public void SyncPlayerData() { var userId = _localStorage.GetCurrentUserId(); var start = GetLastSyncDate(userId).Date; var end = DateTime.Today; var progressToSync = GetDailyProgress(start, end); _balanceUpdater.UpdateBalance(progressToSync); _progressRepository.SaveProgress(userId, progressToSync); }