public ActionResult Create()
        {
            var model = new Models.OfficeStaff.OfficeStaffViewModel();

            model.Base = new ViewModelBase(PushState, "/OfficeStaff/Create", "New Office Staff Entry");

            return(GetView("Edit", model));
        }
        public ActionResult Edit(int id)
        {
            var model = new Models.OfficeStaff.OfficeStaffViewModel();

            model.Detail = repository.GetOfficeStaff(id);
            model.Base   = new ViewModelBase(
                PushState,
                "/OfficeStaff/Edit/" + id,
                "Office Staff Editing",
                "/OfficeStaff/Search");

            return(GetView("Edit", model));
        }
 public ActionResult Edit(Models.OfficeStaff.OfficeStaffViewModel model)
 {
     return(SaveAction(model, model.ViewHelper, "Search", "Edit", "ErrorPartial", () => repository.SaveStaff(model.Detail)));
 }