public IActionResult Search(string text, string tpName, int pageStart = 0, int pageLimit = 20) { ReviewableAPIFactory reviewableAPIFactory = getReviewableAPIFactory(tpName); return(Ok(reviewableAPIFactory.GetAPIAdaptor().SearchReviewablesAsync(text, pageStart, pageLimit).Result)); }
public IActionResult Get(string tpID, string tpName) { ReviewableAPIFactory reviewableAPIFactory = getReviewableAPIFactory(tpName); return(Ok(reviewableAPIFactory.GetAPIAdaptor().GetReviewableByIDAsync(tpID).Result)); }