public async Task<ActionResult> Register(RegisterViewModel model)
 {
     if(ModelState.IsValid)
     {
         UserIntPK newUser = new UserIntPK()
         {
             Email = model.Email,
             UserName = model.Email,
             Name = model.Name
         };
         IdentityResult result = await userManager.CreateAsync(newUser, model.Password);
         if(result.Succeeded)
         {
             return Json(new { Url = Url.RouteUrl("Home") });
         }
         else
         {
             foreach(string error in result.Errors)
             {
                 ModelState.AddModelError("", error);
             }
         }
     }
     return View(model);
    
 }
 public ViewResult Register()
 {
     RegisterViewModel model = new RegisterViewModel();
     return View(model);
 }