public Response Put([FromQuery] string planDefineID, [FromQuery] PlanDefineState state)
        {
            Response response = new Response();

            PlanDefineService.Current.UpdatePlanDefineState(planDefineID, state);
            return(response);
        }
Exemplo n.º 2
0
 public void UpdatePlanDefineState(string planDefineID, PlanDefineState state)
 {
     DataValidator.CheckForEmptyString(planDefineID, "planDefineID");
     if (state.Equals(PlanDefineState.Unknown))
     {
         throw new Exception();
     }
     manager.UpdatePlanDefineState(planDefineID, state);
 }
Exemplo n.º 3
0
        internal void UpdatePlanDefineState(string planDefineID, PlanDefineState state)
        {
            string updateSql = $@" update plandefine set state='{Convert.ToInt32(state)}' where id='{planDefineID}'";

            db.ExecSqlStatement(updateSql);
        }
Exemplo n.º 4
0
 internal void UpdatePlanDefineState(string planDefineID, PlanDefineState state)
 {
     dac.UpdatePlanDefineState(planDefineID, state);
 }