Esempio n. 1
0
        public Home GetById(string Id)
        {
            var filter = Builders <Home> .Filter.Eq(x => x._id, Id);

            var data = _HomeRepository.GetById(filter);

            return(data);
        }
Esempio n. 2
0
 public Home GetById(int homeId)
 {
     // Here we consume the Data Service
     return(_homeRepository.GetById(homeId));
 }
Esempio n. 3
0
 public Home GetById(int id)
 {
     return(_homerepository.GetById(id));
 }
Esempio n. 4
0
 public Home GetById(long id)
 {
     return(_homeRepository.GetById(id));
 }