public void Register() { Handle.GET("/tatiana", () => { var page = new CorporationPage(); page.LoadSubiews(); return(MasterPageManager.NavigateToView(page)); }); }
public void Register() { Handle.GET("/tatiana/edit-office/{?}", (string id) => { return(Db.Scope <Json>(() => { FranchiseOfficeEditPage page = new FranchiseOfficeEditPage { Data = DbHelper.FromID(DbHelper.Base64DecodeObjectID(id)) as FranchiseOffice }; return MasterPageManager.NavigateToView(page); })); }); }