Example #1
0
 public static string GetValue(this WebSites site)
 {
     return(site.ToString());
 }
        public static List <Product> GetProductsByWebSite(WebSites webSiteId)
        {
            var query = Query.EQ("WebSiteId", webSiteId.ToString());

            return(_mongoContext.GetDocuments <Product>(query, _collectionName).ToList());
        }