Skip to content

Instantly share code, notes, and snippets.

@danieleli
Created February 13, 2016 18:58
Show Gist options
  • Save danieleli/feefa2a1764a7a301b65 to your computer and use it in GitHub Desktop.
Save danieleli/feefa2a1764a7a301b65 to your computer and use it in GitHub Desktop.
MessageTo
public class SampleController : Controller
{
public ActionResult SendMessage()
{
var model = new MessageModel {SellerHandle = "testHandle"};
return View(model);
}
public ActionResult MessageTo(string sellerHandle)
{
ViewBag.SellerHandle = sellerHandle;
return View();
}
}
<h2>title</h2>
@ViewBag.SellerHandle
<div>
@Html.ActionLink(Model.SellerHandle, "MessageTo", new {sellerHandle = Model.SellerHandle})
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment