/// <inheritdoc /> public async Task UpdateProfile(string userName, byte[] avatar) { var profile = new Profile() { UserName = userName, Avatar = avatar }; _profileRepository.Update(profile); await _profileRepository.SaveChangesAsync(); }
/// <inheritdoc /> public async Task AddNewProfile(string userName, string userId) { var profile = new Profile() { UserName = userName, UserId = userId }; await _profileRepository.AddAsync(profile); await _profileRepository.SaveChangesAsync(); }