public ActionResult EditUser(int id, EditUserProfileViewModel model)
        {
            if (ModelState.IsValid)
            {
                UserProfileDAL.UpdateUser(id, model.Email, model.FirstName, model.LastName, model.PhoneNumber);

                InfoCardDAL.UpdateInfoCardDescription(
                    WebSecurity.CurrentUserId,
                    "Edited user: \"" + model.UserName + "\""
                    );

                return RedirectToAction("DetailsUser", new { id = model.UserId });
            }
            return View(model);
        }
 public ActionResult EditUser(int id)
 {
     EditUserProfileViewModel user = new EditUserProfileViewModel(new UserProfileViewModel(UserProfileDAL.SelectUserById(id)));
     return View(user);
 }