private void uxRecordsButton_Click(object sender, EventArgs e) { Hide(); var teams = new uxRecords(coachController.GetCoach(Program.currentUser.UserId)); teams.Closed += (s, args) => Close(); teams.Show(); }
public void SaveUserToLocalStorage(UserType type) { var userId = _localStorage.GetCurrentUserId(); _localStorage.SetUserCurrentType(type); if (type == UserType.Player) { _dataSync.SyncPlayerData(); _activitiesSync.SyncPlayerActivitiesToDB(); _notificationCenter.Initialize(); _localStorage.SetCurrentUser(_playerRepository.GetPlayer(userId)); } else { _localStorage.SetCurrentUser(_coachRepository.GetCoach(userId)); } }
public async Task <Coach> GetUserByEmail(string email) => await _coachRepository.GetCoach(email);
public async Task <Coach> GetCoach(int id) { return(await _Coachs.GetCoach(id)); }