public ActionResult CreateAppDependency(Guid id)
        {
            var viewmodel = new CreateAppDependencyViewModel();
            var tempApp = new ApplicationPortfolio.Domain.DataConnections.Application();
            tempApp.ApplicationId = id;
            viewmodel.App = tempApp;

            viewmodel.Servers = ServerRepo.GetAllServers();

            return View(viewmodel);
        }
        public ActionResult CreateAppDependency(CreateAppDependencyViewModel createAppDependencyViewModel)
        {
            try
            {
                    ApplicationServerDependency applicationServerDependency = new ApplicationServerDependency();
                    applicationServerDependency.ServerId = createAppDependencyViewModel.SelectedServerId;
                    applicationServerDependency.ApplicationId = createAppDependencyViewModel.App.ApplicationId;

                    var result = DependRepo.CreateDependency(applicationServerDependency);
                    if (result == "Success")
                    {
                        return RedirectToAction("Details", new { id = createAppDependencyViewModel.App.ApplicationId, AppOrServer="Application" });
                    }

                return View(createAppDependencyViewModel);
            }
            catch
            {
                return View();
            }
        }