public ActionResult CreateApp()
        {
            AppModel appModel = new AppModel()
            {
                AppCategoryList = appCategoryRepository.getAllAppCategories().GroupBy(i => i.AppCategoryName).Select(grp => grp.First()),
                AppIndustryList = appIndustryRepository.getAllAppIndustries().GroupBy(i => i.AppIndustryName).Select(grp => grp.First())
            };

            return View(appModel);
        }
        public static AppModel ToAppModel(this App domainApp)
        {
            AppModel appModel = new AppModel()
            {
                AppTitle = domainApp.AppName,
                AppCategoryID = domainApp.AppCategoryID,
                AppID = domainApp.AppID

            };
            return appModel;
        }
        public ActionResult CreateApp(AppModel appModel)
        {
            int userID = WebSecurity.GetUserId(User.Identity.Name);
                string RootPath = HttpContext.Server.MapPath("/");
                App appET = appModel.ToDomainApp(userID);

                string appID = appRepository.createNewApp(appET, RootPath);

                return RedirectToAction("ManageApp", "App", new { appID = appID });

            //return View(appModel);
        }