public ActionResult BOQ_JKH_NewJob(BOQ_JKH_NewJobModel model) { bool success = true; WebView.WebService._base myWebService; myWebService = new WebService._base(); bool selected = false; // create job in OSP (SOAP) WebService._base.BOQ_JKH BOQ_JKH_newjob = new WebService._base.BOQ_JKH(); BOQ_JKH_newjob.x_EXC_ABB = model.x_EXC_ABB; BOQ_JKH_newjob.x_PU_DESC = model.x_PU_DESC; BOQ_JKH_newjob.x_YEAR_INSTALL = model.x_YEAR_INSTALL.ToString(); BOQ_JKH_newjob.x_SCH_TYPE = model.x_SCH_TYPE.ToString(); BOQ_JKH_newjob.x_SCH_NO = model.x_SCH_NO; BOQ_JKH_newjob.x_SCHEME_NAME = model.x_SCHEME_NAME; BOQ_JKH_newjob.x_PU_ID = model.x_PU_ID; BOQ_JKH_newjob.x_BQ_MAT_PRICE = model.x_BQ_MAT_PRICE.ToString(); BOQ_JKH_newjob.x_BQ_INSTALL_PRICE = model.x_BQ_INSTALL_PRICE.ToString(); BOQ_JKH_newjob.x_PU_QTY = model.x_PU_QTY.ToString(); BOQ_JKH_newjob.x_OLD_MAT_PR = model.x_OLD_MAT_PR.ToString(); BOQ_JKH_newjob.x_OLD_INSTALL_PR = model.x_OLD_INSTALL_PR.ToString(); BOQ_JKH_newjob.x_CONSTRUCT_BY = model.x_CONSTRUCT_BY; BOQ_JKH_newjob.x_RECVR_QTY = model.x_RECVR_QTY.ToString(); BOQ_JKH_newjob.x_RATE_INDICATOR = model.x_RATE_INDICATOR; success = myWebService.AddBOQ_JKH(BOQ_JKH_newjob); selected = true; if (ModelState.IsValid && selected) { if (success == true) { return(RedirectToAction("BOQ_JKH_NewSave")); } else { return(RedirectToAction("NewSaveFail")); // store to db failed. } } return(View(model)); }