protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["a4rredirectUrl"] != null) { this.Title = ConfigurationSettings.AppSettings["AppName"].ToString() + " : Login"; } else { Response.Redirect("/account/login.aspx?a4rredirectUrl=login-administrator-home&pageId=1234HJHJKJ*7987979"); } if (!IsPostBack) { FilesHelper.DeleteFilesOlderThen5Days(); } }
// GET: home public ActionResult Index() { FilesHelper.DeleteFilesOlderThen5Days(); return(View()); }