Created
July 29, 2012 23:22
-
-
Save toddpi314/3202519 to your computer and use it in GitHub Desktop.
CoreViewModel
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web.Mvc; | |
using LightningMVC.Views; | |
namespace Views | |
{ | |
public abstract class CoreViewModel | |
{ | |
public ActionResult ActionResult { get; set; } | |
public String Error { get; set; } | |
public IViewController ViewController { get; set; } | |
public bool IsAjaxRequest { get; set; } | |
protected void NavigateToView(string controller, string view, object args = null) | |
{ | |
this.ActionResult = ViewController.NavigateToView(controller, view, args); | |
} | |
public virtual void OnDataSet() | |
{ | |
} | |
public virtual void OnValidated() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment