public ActionResult Edit(UserView userView)
 {
     if (ModelState.IsValid)
     {
         var user = (User)ModelMapper.Map(userView, typeof(UserView), typeof(User));
     user.CurrentLang = CurrentLang.ID;
         if (user.ID == 0)
         {
             Repository.CreateUser(user);
         }
         else
         {
             Repository.UpdateUser(user);
         }
         return RedirectToAction("Index");
     }
     return View(userView);
 }
        public ActionResult Edit(UserView userView)
        {
            if (CurrentUser.ID == userView.ID)
            {
                if (ModelState.IsValid)
                {
                    var user = (User)ModelMapper.Map(userView, typeof(UserView), typeof(User));
                    user.CurrentLang = CurrentLangID;
                    Repository.UpdateUser(user);

                    return RedirectToAction("Index");
                }
                return View(userView);
            }
            return RedirectToLoginPage;
        }
 public ActionResult Create()
 {
     var userView = new UserView();
     userView.CurrentLang = CurrentLang.ID;
     return View("Edit", userView);
 }