public ActionResult ShowApps()
        {
            ApplicationHandler application        = new ApplicationHandler();
            ICollection <ApplicationManager> data = application.GetAllApps();

            return(View(data));
        }
        public ActionResult DeleteApp(FormCollection form)
        {
            int num = Convert.ToInt32(form["applicationId"].ToString());

            if (ModelState.IsValid)
            {
                ApplicationHandler application        = new ApplicationHandler();
                ICollection <ApplicationManager> data = application.GetAllApps();
                ApplicationManager appManager         = new ApplicationManager();
                appManager = data.Single(x => x.applicationId == num);
                data.Remove(appManager);
                return(RedirectToAction("successPage"));
            }
            return(RedirectToAction("ErrorLogin"));
        }