public async Task <Profile> UpdateProfile(Profile model)
        {
            var entity = await _profilesRepository.UpsertProfile(ProfileMapper.ToProfileEntity(model));

            var contract = ProfileMapper.ToProfileContract(entity);

            return(contract);
        }