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

            var data = _HomeRepository.GetById(filter);

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