예제 #1
0
        /// <inheritdoc />
        public async Task UpdateProfile(string userName, byte[] avatar)
        {
            var profile = new Profile()
            {
                UserName = userName, Avatar = avatar
            };

            _profileRepository.Update(profile);
            await _profileRepository.SaveChangesAsync();
        }
예제 #2
0
        /// <inheritdoc />
        public async Task AddNewProfile(string userName, string userId)
        {
            var profile = new Profile()
            {
                UserName = userName, UserId = userId
            };
            await _profileRepository.AddAsync(profile);

            await _profileRepository.SaveChangesAsync();
        }