Пример #1
0
        public ViewResult Index(ControllerContext controllerContext)
        {
            dynamic data = controllerContext.Data;
            data.Today = DateTime.Now;

            return new ViewResult("index", "default");
        }
Пример #2
0
 public IssuesController(ContentNegotiator contentNegotiator, ControllerContext controllerContext)
 {
     _contentNegotiator = contentNegotiator;
     _ctx = controllerContext;
     // _contentNegotiator.Allow();
 }
Пример #3
0
 public CategoryController(ControllerContext controllerContext)
 {
     this.controllerContext = controllerContext;
 }
Пример #4
0
        public object Index2(ControllerContext controllerContext)
        {
            controllerContext.Data.MainModel = new Issue {CreatedAt = DateTime.Now};

            return new ViewResult("view");
        }