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

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

            db.ExecSqlStatement(updateSql);
        }
 internal void UpdatePlanDefineState(string planDefineID, PlanDefineState state)
 {
     dac.UpdatePlanDefineState(planDefineID, state);
 }