Example #1
0
        public async Task <Dto.Profile> UpdateAsync(
            string firebaseId,
            int profileId,
            string displayName,
            string notes)
        {
            var profile = await _profileDataService.GetAsync(profileId);

            profile.DisplayName = displayName;
            profile.Notes       = notes;

            profile.AddTimestamp(firebaseId);

            await _profileDataService.UpdateAsync(profile);

            return(_mapper.Map <Dto.Profile>(profile));
        }