public ActionResult Profile(FormCollection formData)
        {
            MonsterRepository repository = new MonsterRepository();
            String strUser = User.Identity.Name;
            ProfileViewModel newData = new ProfileViewModel();
            aspnet_Membership p = repository.getProfileByUserName(strUser);

            if (p != null && ModelState.IsValid)
            {
                UpdateModel(newData);
                p.fullName = newData.fullName;
                p.Email = newData.email;
                p.phone_number = newData.phoneNumber;
                p.title = newData.title;
                repository.updateProfile(p, strUser);
                return RedirectToAction("Profile");
            }
            else
            {
                ModelState.AddModelError("", "Netfang er ekki rétt.");
                return View(newData);
            }
        }
        public ActionResult Profile()
        {
            MonsterRepository rep = new MonsterRepository();
            String strUser = User.Identity.Name;
            var result = rep.getProfileByUserName(strUser);

            ProfileViewModel profileModel = new ProfileViewModel
            {
                userName = strUser,
                fullName = result.fullName,
                email = result.Email,
                phoneNumber = result.phone_number,
                title = result.title
            };
            return View(profileModel);
        }