public ActionResult Add_usuario(UserViewModel UserViewModel)
        {
            Users User = new Users();

            UserRepository UserRepository = new UserRepository();

            if (ModelState.IsValid)
            {
                User.Active = UserViewModel.Active;
                User.Departament = UserViewModel.Departament;
                User.Email = UserViewModel.Email;
                User.Job = UserViewModel.Job;
                User.Name = UserViewModel.Name;
                User.Password = UserViewModel.Password;
                User.Username = UserViewModel.Username;
                User.UserType = UserViewModel.UserType;
                User.RegisterDate = DateTime.Now;
                User.Token = "123";
                User.IP = "123";

                UserRepository.Add(User);

                return View("Index", UserViewModel.UserDev);
            }
                return View(UserViewModel);

        }
        public ActionResult Index(LoginUser loginUser)
        {
            if (loginUser == null || !ModelState.IsValid)
            {
                ModelState.AddModelError("", "Usuário ou Senha Incorretos");
                return View("Index");
            }

            Users user = new UserRepository().Get(loginUser.User, loginUser.Password);

            if (user != null)
            {
                return RedirectToAction("Index", "Home", new { area = "Home", UserType = user.UserType });
            }
            else
            {
                ModelState.AddModelError("", "Usuário ou Senha Incorretos");
            }
            return View("Index");
        }