public ActionResult TransferOwnership(TransferOwnershipData model)
        {
            DatabaseContext.TransferDatabaseToUser(model.DatabaseServer, model.DatabaseName, User.Identity.Name, model.NewDatabaseOwner);

            return RedirectToAction("Index");
        }
        public ActionResult TransferOwnershipGetDetails(FormCollection data)
        {
            TransferOwnershipData model = new TransferOwnershipData() { DatabaseServer = data["Server"], DatabaseName = data["Database"] };

            List<string> userList = new List<string>();
            foreach(var user in UserPermissions.Instance.UserSpecificPermissions)
            {
                if (user.Key == User.Identity.Name.ToUpper())
                    continue;
                    
                if (user.Value.RestoreToServerList.Contains(model.DatabaseServer))
                    userList.Add(user.Key);
            }

            ViewBag.UserList = userList;


            return View(model);
        }