Ejemplo n.º 1
0
 public HttpResponseMessage DelWorkPlan([FromUri] int wid)
 {
     try
     {
         WorkPlanProider _Provider = new WorkPlanProider();
         var             result    = _Provider.DelWorkPlan(wid);
         return(Request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception ex)
     {
         LogFactory _LogFactory = new LogFactory(this.GetType());
         _LogFactory.CreateLog(LogType.Error, "删除工作计划", "DelWorkPlan", ex);
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }
Ejemplo n.º 2
0
        private static void DelWorkPlan()
        {
            WorkPlanProider _Provider = new WorkPlanProider();

            _Provider.DelWorkPlan(5);
        }