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>))); } }
public async Task <T> GetAllReviews <T>() { using (DigikalaMongoDBRepository db = new DigikalaMongoDBRepository()) { var ss = db.GetAllReviews(); return((T)Convert.ChangeType(ss, typeof(string[]))); } }