using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using BLL; namespace WebAPI.Controllers { public class JointInfoController : ApiController { #region 保存焊口信息 /// /// 保存焊口信息 /// /// 焊口项 /// [HttpPost] public Model.ResponeData PostSaveJointInfo([FromBody] Model.JointInfoItem addItem) { var responeData = new Model.ResponeData(); try { BLL.APIJointInfoService.SaveJointInfo(addItem); } catch (Exception ex) { responeData.code = 0; responeData.message = ex.Message; } return responeData; } #endregion #region 批量保存焊口信息 /// /// 批量保存焊口信息 /// /// 焊口项 /// [HttpPost] public Model.ResponeData PostSaveJointInfoList([FromBody] List addItems) { var responeData = new Model.ResponeData(); try { BLL.APIJointInfoService.SaveBatchJointInfo(addItems); } catch (Exception ex) { responeData.code = 0; responeData.message = ex.Message; } return responeData; } #endregion } }