public static ServiceReferenceCheckList.LANEINFO CreateEntity(LaneInfoVM vm) { var item = new ServiceReferenceCheckList.LANEINFO(); Helper.CopyProperties(vm, item); return(item); }
public int UpdateLaneInfo(LaneInfoVM _vm) { var proxy = new ServiceReferenceCheckList.CheckListClient(); var entity = new ServiceReferenceCheckList.LANEINFO(); Common.Helper.CopyProperties(_vm, entity); var result = proxy.UpdateLaneInfo(entity); proxy.Close(); return(result); }