摘要:
Action public ActionResult Index() { return this.RazorView(); }ControllerExtensionspublic static class ControllerExtensions { public static ViewResult RazorView(this Controller controller) { return RazorView(controller, null, null); } public static ViewResult RazorView(this Controller controller, ob 阅读全文
摘要:
Model public class SpreadsheetModel { public String fileName { get; set; } public String[,] contents { get; set; } }ACTION public ActionResult Excel() { SpreadsheetModel mySpreadsheet = new SpreadsheetModel(); mySpreadsheet.contents = new String[2, 2] { {"Cell11","Cell12"}, {&quo 阅读全文