Ejemplo n.º 1
0
        public static YogiProfile ToEntity(ViewYogiProfile model)
        {
            YogiProfile item = new YogiProfile();

            item.ProfileID   = model.ProfileID;
            item.UID         = model.UID;
            item.IDType      = model.IDType;
            item.IDNum       = model.IDNum;
            item.IDPhoto     = model.IDPhoto;
            item.IDScan      = model.IDScan;
            item.IDScanF     = model.IDScanF;
            item.Diploma     = model.Diploma;
            item.CreateDate  = model.CreateDate;
            item.UpgradeDate = model.UpgradeDate;
            item.sMemo       = model.sMemo;
            return(item);
        }
Ejemplo n.º 2
0
        public static ViewYogiProfile ToViewModel(YogiProfile model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewYogiProfile item = new ViewYogiProfile();

            item.ProfileID   = model.ProfileID;
            item.UID         = model.UID;
            item.IDType      = model.IDType;
            item.IDNum       = model.IDNum;
            item.IDPhoto     = model.IDPhoto;
            item.IDScanF     = model.IDScanF;
            item.IDScan      = model.IDScan;
            item.Diploma     = model.Diploma;
            item.CreateDate  = model.CreateDate;
            item.UpgradeDate = model.UpgradeDate;
            item.sMemo       = model.sMemo;
            return(item);
        }