Beispiel #1
0
        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));
        }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 protected void buttonDeleteAgencyLocation_Click(object sender, EventArgs e)
 {
     Logic.DeleteAgencyLocation(Id.Value);
     RouteController.RouteTo(RouteController.AgencyView(AgencyId.Value));
 }