public string CreateShareLink(string email) { var pathToShare = _pathHelper.VirtualToAbsolute("~/user/share"); var shareKey = _hashService.CreateMD5Hash(CreateShareKey(email)); return(string.Format(@"{0}/{1}?key={2}", pathToShare, email, shareKey)); }
public ActionResult Index(string email) { var user = _users.Users.WithEmail(email); ViewData["Api"] = _path.VirtualToAbsolute("~/API/v1.1/"); ViewData["Email"] = email; ViewData["ApiToken"] = user.ApiToken; return(View()); }