Skip to content

Instantly share code, notes, and snippets.

@BlessYAHU
Created September 19, 2012 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BlessYAHU/3750574 to your computer and use it in GitHub Desktop.
Save BlessYAHU/3750574 to your computer and use it in GitHub Desktop.
East Orientation in an MVC Action Result
public class DataController : Controller
{
public ActionResult Submit(string status)
{
var resultObject = new SomeViewModel();
_eastClass.PutStatus(status, fillResultObjectAction(resultObject);
return View(resultObject);
}
public Action<EastClass> updateStatusOnModel(SomeModel targetModel)
{
return x => targetModel.Status = x.Status;
}
}
public class SomeViewModel
{
.
.
public string Status { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment