public ActionResult Create(RegistrationViewModel user)
 {
     var blluser = new UserEntity()
     {
         UserName = user.UserName,
         RoleId = (int)user.Role
     };
     service.CreateUser(blluser);
     return RedirectToAction("Index");
 }
        public ActionResult Index(RegistrationViewModel user)
        {
            var blluser = new UserEntity()
            {
                UserName = user.UserName,
                Email = user.Email,
                Password = user.Password,
                Roles = new List<RoleEntity>()
            };
            blluser.Roles.Add(new RoleEntity() { Name = "User" });
            UserService.CreateUser(blluser);

            return RedirectToAction("Index", "Home");
        }