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); }
public void CreateDeviceType(DeviceType devicetype) { devicetypeRepository.Add(devicetype); }
public void AddDeviceType(DeviceType newDeviceType) { _repository.Add(newDeviceType); }