/// <summary>
        /// 
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        public ProfileEditContract GetEditProfile(Guid uid)
        {
            User userEntity = userRepository.GetUserById(uid);

            ProfileEditContract contract = new ProfileEditContract();
            contract.userId = uid;
            contract.name = userEntity.profile.name;
            contract.nameVisibility = (FieldVisibilityTypes)Enum.ToObject(typeof(FieldVisibilityTypes), userEntity.profile.nameVisibility);

            return contract;
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="model"></param>
 public void EditProfile(ProfileEditContract model)
 {
     profileRepository.Edit(model.userId, model.name.Trim(), model.nameVisibility, 1, DateTime.Now);
 }