Ejemplo n.º 1
0
        protected void btnSyncQuestions_click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            // instead of id use command arugement
            if (btn.CommandArgument == "SyncQuestions")
            {
                ScheduleWorkflow.SyncQuestions(SetId, SessionVariables.RequestProfile);
                Response.Redirect(Request.RawUrl);
            }
        }
 public override List <Workflow> Seed()
 {
     return(new List <Workflow>
     {
         CategoryWorkflow.Build(BusinessRoles.UserRole),
         SearchQueryWorkflow.Build(BusinessRoles.UserRole),
         SearchQueryByCategoryWorkflow.Build(BusinessRoles.UserRole),
         SearchQueryByCategoryIdWorkflow.Build(BusinessRoles.UserRole),
         SearchQueryByIdWorkflow.Build(BusinessRoles.UserRole),
         SettingsWorkflow.Build(BusinessRoles.UserRole),
         FeedbackWorkflow.Build(BusinessRoles.UserRole),
         ScheduleWorkflow.Build(BusinessRoles.AdminRole),
         QueryExecutionWorkflow.Build(BusinessRoles.AdminRole),
         ExecuteScheduleWorkflow.Build()
     });
 }