public ActionResult SitesInfo(SiteInfoFilterVM model) { if (!ModelState.IsValid) { throw new Exception(); } model.SitesInfo = SitesManager.GetSitesInfo(model.From, model.To); return(View(model)); }