public StartPage() { this.InitializeComponent(); this.Logic = new StartPageLogic(); this.Loaded += OnLoaded; this.Logic.NewResponse += OnNewResponse; this.Logic.DistanceChanged += OnDistanceChanged; }
public ActionResult Index(string articleCat, string searchString, DateTime?fromDate, DateTime?forDate) { BlogContext db = DbLogic.GetDB(); ViewBag.Categories = DbLogic.GetCategories(db); ViewBag.Articles = StartPageLogic.Search(articleCat, searchString, fromDate, forDate); return(View()); }