protected void dataSourceEditAgency_Updated(object sender, ObjectContainerDataSourceStatusEventArgs e) { var viewData = (EditAgencyViewData)e.Instance; viewData.SetLastUpdated(AccountInfo.UserId); Logic.UpdateAgency(viewData); RouteController.RouteTo(RouteController.AgencyView(Id.Value)); }
protected void dataSourceAgencyLocation_Inserted(object sender, ObjectContainerDataSourceStatusEventArgs e) { var viewData = (AddAgencyLocationViewData)e.Instance; viewData.SetIsActive(true); viewData.SetCreated(AccountInfo.UserId); viewData.SetLastUpdated(AccountInfo.UserId); Logic.AddAgencyLocation(viewData); RouteController.RouteTo(RouteController.AgencyView(AgencyId.Value)); }
protected void buttonDeleteAgencyLocation_Click(object sender, EventArgs e) { Logic.DeleteAgencyLocation(Id.Value); RouteController.RouteTo(RouteController.AgencyView(AgencyId.Value)); }