Example #1
0
        public bool CreateDeviceType(DeviceType deviceType)
        {
            bool isSuccess = true;

            try
            {
                deviceTypeRepository.Add(deviceType);
                this.SaveRecord();
                ServiceUtil <DeviceType> .WriteActionLog(deviceType.Id, ENUMOperation.CREATE, deviceType);
            }
            catch (Exception ex)
            {
                isSuccess = false;
                logger.Error("Error in creating DeviceType", ex);
            }
            return(isSuccess);
        }
Example #2
0
 public void CreateDeviceType(DeviceType devicetype)
 {
     devicetypeRepository.Add(devicetype);
 }
Example #3
0
 public void AddDeviceType(DeviceType newDeviceType)
 {
     _repository.Add(newDeviceType);
 }