Download BlueTube.Web/Controllers/AdController.cs from niobures/VideoSearch: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/niobures/VideoSearch/resolve/main/BlueTube.Web/Controllers/AdController.cs
- Command line
-
hf download hf://niobures/VideoSearch/BlueTube.Web/Controllers/AdController.cs
-
curl -L -o AdController.cs https://huggingface.co/niobures/VideoSearch/resolve/main/BlueTube.Web/Controllers/AdController.cs
600 Bytes
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Configuration; | |
| namespace BlueTube.Web.Controllers | |
| { | |
| public class AdController : Controller | |
| { | |
| // | |
| // GET: /Ad/ | |
| public ActionResult Index(string id, string uid) | |
| { | |
| return View("Index",(object)id); | |
| } | |
| public bool ShowAds(string uid) | |
| { | |
| DataService.LogShowAd(uid); | |
| return Convert.ToBoolean(ConfigurationManager.AppSettings["ShowAds"]); | |
| } | |
| } | |
| } | |