public AccountController() { SliceOfPie.Controller.IsWebController = true; um = new SliceOfPie.UserModel(); }
/// <summary> /// Create a new instance of a controller. Made private as to only allow one instance /// to be created. External sources should get the controller from <c>Controller.Instance;</c> /// </summary> /// <param name="model">FileModel to use (local or web?)</param> private Controller(IFileModel model = null) { if (model == null) model = new LocalFileModel(); fileModel = model; userModel = new UserModel(); }