コード例 #1
0
        public static ProjectProxy ProjectModelToProxy(Project model)
        {
            ProjectProxy proxyObject = new ProjectProxy();
            proxyObject.Title = model.Title;
            proxyObject.ID = model.ID;
            proxyObject.CreatedBy = model.CreatedBy;
            proxyObject.UpdatedBy = model.UpdatedBy;

            return proxyObject;
        }
コード例 #2
0
        public static Project ProjectProxyToModel(ProjectProxy proxy)
        {
            Project model = new Project();
            model.Title = proxy.Title;
            model.ID = proxy.ID;
            model.CreatedBy = proxy.CreatedBy;
            model.UpdatedBy = proxy.UpdatedBy;

            return model;
        }