public bool DeleteDevice(int deviceId) { int statusId = statusDao.GetStatus(Status.VALUE.DEVICE_INACTIVE.ToString()).Id; return(deviceDao.DeleteDevice(deviceId, statusId)); }