Beispiel #1
0
        public static CenterStare ToEntity(ViewCenterStare model)
        {
            CenterStare item = new CenterStare();

            item.Sid         = model.Sid;
            item.Price       = model.Price;
            item.Centerclass = model.Centerclass;
            item.Service     = model.Service;
            item.Env         = model.Env;
            item.Uid         = model.Uid;
            item.Mid         = model.Mid;
            item.Satate      = model.Satate;
            item.CreateDate  = model.CreateDate;
            return(item);
        }
Beispiel #2
0
        public static ViewCenterStare ToViewModel(CenterStare model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewCenterStare item = new ViewCenterStare();

            item.Sid         = model.Sid;
            item.Price       = model.Price;
            item.Centerclass = model.Centerclass;
            item.Service     = model.Service;
            item.Env         = model.Env;
            item.Uid         = model.Uid;
            item.Mid         = model.Mid;
            item.Satate      = model.Satate;
            item.CreateDate  = model.CreateDate;
            return(item);
        }