Ejemplo n.º 1
0
        public static BaseLoginInfoHistory NewHistoryItem(BaseLoginInfo item, Person person, String address, String proxy)
        {
            BaseLoginInfoHistory r = new BaseLoginInfoHistory();

            r.CreatorInfo = CreatorInfo.Create(item, person, address, proxy);

            return(r);
        }
Ejemplo n.º 2
0
        public static CreatorInfo Create(BaseLoginInfo item, Person person, String address, String proxy)
        {
            CreatorInfo info = new CreatorInfo();

            info.IdCreator      = (person != null) ? person.Id : 0;
            info.Displayname    = (person != null) ? person.SurnameAndName : "--";
            info.CreatedOn      = DateTime.Now;
            info.IpAddress      = address;
            info.ProxyIpAddress = proxy;
            return(info);
        }