Exemplo n.º 1
0
        protected void dataSourceSubStateRegion_Inserted(object sender, ObjectContainerDataSourceStatusEventArgs e)
        {
            var viewData = (AddSubStateRegionViewData)e.Instance;

            viewData.SetIsActive(true);
            viewData.SetCreated(AccountInfo.UserId);
            viewData.SetLastUpdated(AccountInfo.UserId);
            RouteController.RouteTo(RouteController.AgencyRegionSuccess(Logic.AddSubStateRegion(viewData)));
        }
Exemplo n.º 2
0
        protected void dataSourceSubStateRegion_Updated(object sender, ObjectContainerDataSourceStatusEventArgs e)
        {
            var viewData = (EditSubStateRegionViewData)e.Instance;

            viewData.SetIsActive(viewData.IsActive);
            viewData.SetCreated(AccountInfo.UserId);
            viewData.SetLastUpdated(AccountInfo.UserId);
            Logic.UpdateSubStateRegion(viewData);
            RouteController.RouteTo(RouteController.AgencyRegionSuccess(Id.GetValueOrDefault(0)));
        }