public object getIsJobProEntities(PM_ACT_JOB_PROCEDURE jobProEntity) { IList <PM_ACT_JOB_PROCEDURE> list = new List <PM_ACT_JOB_PROCEDURE>(); try { list = procedureBO.GetJobProentities(jobProEntity); return(list); } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "getIsJobProEntities出错:" + e.Message)); } }
public HttpResponseMessage AddjobProc(PM_ACT_JOB_PROCEDURE jobPro) { jobPro.CreatedOn = SSGlobalConfig.Now; jobPro.UpdatedOn = jobPro.CreatedOn; try { PM_ACT_JOB_PROCEDURE newjobPro = procedureBO.Insert(jobPro); if (newjobPro != null) { return(Request.CreateResponse(HttpStatusCode.OK, "新增成功")); } else { return(Request.CreateResponse(HttpStatusCode.InternalServerError, "新增失败")); } } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "新增失败:" + e.Message)); } }