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; }
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; }