public List <MonitorModel> GetAll() { if (repository.GetAll().Count() == 0) { return(null); } return(repository.GetAll().ToList()); }