public int AddDevice(Device device) { device.StatusId = statusDao.GetStatus(Status.VALUE.DEVICE_ACTIVE.ToString()).Id; return(deviceDao.AddDevice(device)); }