public static string get_all_hot_products() { try { PAWDStoreEntities context = new PAWDStoreEntities(); var all_hot_product = context.GetHotProduct().ToList(); return(JsonConvert.SerializeObject(all_hot_product)); } catch (Exception ex) { throw ex.InnerException; } }