Created
February 13, 2016 18:58
-
-
Save danieleli/feefa2a1764a7a301b65 to your computer and use it in GitHub Desktop.
MessageTo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>title</h2> | |
@ViewBag.SellerHandle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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