示例#1
0
        public void Sync(AddGateDto input)
        {
            var gate = Read <Gate>(t => t.DeviceNumber == input.DeviceNumber);

            if (gate != null)
            {
                var entity = input.MapTo <Gate>();
                AddAndSave(entity);
            }
        }
示例#2
0
        public void Add(AddGateDto input)
        {
            var gate = input.MapTo <Gate>();

            AddAndSave(gate);
        }