public static AreaProxy AreaModelToProxy(Area model) { AreaProxy proxyObject = new AreaProxy(); proxyObject.ID = model.ID; proxyObject.Title = model.Title; proxyObject.CreatedBy = model.CreatedBy; proxyObject.UpdatedBy = model.UpdatedBy; return proxyObject; }
public static Area AreaProxyToModel(AreaProxy proxy) { Area area = new Area(); area.ID = proxy.ID; area.Title = proxy.Title; area.CreatedBy = proxy.CreatedBy; area.UpdatedBy = proxy.UpdatedBy; return area; }