Beispiel #1
0
 private SUser(User user, HttpContextBase context, Culture culture = Culture.En)
 {
     Id            = user.Id;
     Name          = user.Name;
     LastName      = user.LastName;
     FacebookLogin = user.FacebookLogin;
     GoogleLogin   = user.GoogleLogin;
     VkLogin       = user.VkLogin;
     Image         = DefineImagePath(context, user.Image);
     Experience    = user.Experience;
     Email         = user.Email;
     Password      = user.Password;
     Status        = UserStatus.GetStatus(user.Status).GetName(culture);
     if (FacebookLogin != null || GoogleLogin != null || VkLogin != null)
     {
         RegistrationDate = null;
     }
     else
     {
         RegistrationDate = user.RegistrationDate;
     }
 }