Пример #1
0
        public static CUserInfo ToCUserInfo(this CUser user)
        {
            CUserInfo userInfo = new CUserInfo();

            userInfo.Id    = user.Guid;
            userInfo.Name  = user.Name;
            userInfo.Email = user.Email;
            //userInfo.Password -  we do not return user his password-hash
            return(userInfo);
        }
Пример #2
0
 public CFile(CFileInfo fileInfo, CUser user, string userFolder) : this(
         Guid.Empty, fileInfo.Name, userFolder, 0,
         user.Guid, fileInfo.IsPublic, null, DateTime.Now, 0, 0, 0)
 {
 }