public async Task <ActionResult> ChangeAccountInfo(ChangeAccountInfoModel model, string returnUrl)
 {
     if (ModelState.IsValid)
     {
         ApplicationUser user = new ApplicationUser {
             FirstName = model.FirstName, LastName = model.LastName
         };
         if (!string.IsNullOrEmpty(model.Email))
         {
             user.Email = model.Email;
         }
         await MembershipContext.ChangeAccountInfo(User.Identity.GetUserId(), user);
     }
     if (string.IsNullOrEmpty(returnUrl))
     {
         return(RedirectToAction("Index", "Home"));
     }
     else
     {
         return(Redirect(returnUrl));
     }
 }