Пример #1
0
        public int InsertLaneInfo(LaneInfoVM _vm)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var entity = LaneInfoVM.CreateEntity(_vm);
            var result = proxy.InsertLaneInfo(entity);

            proxy.Close();
            return(result);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public IList <LaneInfoVM> GetLaneInfoListBy(int checkListPk)
        {
            var proxy  = new ServiceReferenceCheckList.CheckListClient();
            var items  = proxy.GetLaneInfoListBy(checkListPk);
            var result = new List <LaneInfoVM>();

            foreach (var x in items)
            {
                var item = new LaneInfoVM();
                Helper.CopyProperties(x, item);
                result.Add(item);
            }
            return(result);
        }