public ActionResult Create(User user)
        {
            int id = Db.Db.CreateUser(user);

            ShareableLinkController.GenerateShareableHash(id);
            return(RedirectToAction("List"));
        }
 public ActionResult Edit(User user)
 {
     Db.Db.UpdateUser(user);
     if (string.IsNullOrEmpty(user.ShareableLink))
     {
         ShareableLinkController.GenerateShareableHash(user.UserId);
     }
     return(RedirectToAction("List"));
 }