public ActionResult Signup(SignupViewModel model)
        {
            if (ModelState.IsValid)
            {
                var newUser = Mapper.Map<SimpleSocialNetwork.Domain.User> (model);
                newUser.RoleId = (int) Roles.ApprovedMember;

                bool result = _userService.CreateUser(newUser);

                if(result)
                {
                    return Redirect(Url.Action("Login", "Account"));
                }
                ModelState.AddModelError("", "Login is already taken");
            }
            return View();
        }
        public ActionResult Add(SignupViewModel model)
        {
            if (ModelState.IsValid)
            {
                var newUser = Mapper.Map<SimpleSocialNetwork.Domain.User>(model);
                newUser.RoleId = (int) Roles.Moderator;

                bool result = _userService.CreateUser(newUser);

                if (result)
                {
                    return Redirect(Url.Action("Index", "Admin"));
                }
                else
                ModelState.AddModelError("", "Login is already taken");
            }
            return View();
        }