public ActionResult Register(Account user)
 {
     if (ModelState.IsValid)
     {
         if (user.Register())
         {
             ModelState.Clear();
             try
             {
                 user.LoginResultDetails.User = new AquariumUserManagement.User();
                 user.GetAllTitles();
                 user.GetAllClientOffices();
                 user.GetAllAdminGroups();
             }
             catch (Exception ex)
             {
                 throw ex;
             }
         }
     }
     return View(user);
 }
        public ActionResult Register()
        {
            Account user = new Account();
            try
            {
                user.GetAllTitles();
                user.GetAllClientOffices();
                user.GetAllAdminGroups();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return View(user);
        }