Created
September 19, 2012 16:20
-
-
Save BlessYAHU/3750574 to your computer and use it in GitHub Desktop.
East Orientation in an MVC Action Result
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 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; | |
} | |
} |
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 SomeViewModel | |
{ | |
. | |
. | |
public string Status { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment