Esempio n. 1
0
 public async Task <T> GetAllReviewObjects <T>(string cat)
 {
     using (DigikalaMongoDBRepository db = new DigikalaMongoDBRepository())
     {
         var ss = db.GetAllReviews(cat);
         return((T)Convert.ChangeType(ss, typeof(List <DigikalaProduct>)));
     }
 }
Esempio n. 2
0
 public async Task <T> GetAllReviews <T>()
 {
     using (DigikalaMongoDBRepository db = new DigikalaMongoDBRepository())
     {
         var ss = db.GetAllReviews();
         return((T)Convert.ChangeType(ss, typeof(string[])));
     }
 }