public void OutCompanySave(OutCompanyModel outcompany) { new MongoDacHelper("outcompany").Save<OutCompanyModel>(outcompany); }
public JsonResult OutCompanyInsert(string name = "", string tell = "", string addr = "") { bool result = true; try { CompanyModel company = new Dac_Company().CompanyInfoDetail(ObjectId.Parse(ConfigurationManager.AppSettings["COM"])); OutCompanyModel model = new OutCompanyModel(); model.OutComAddr = addr; model.OutComName = name; model.OutComTell = tell; ; model.Company = company; new Dac_Bom().OutCompanySave(model); } catch (Exception ex) { result = false; } return Json(result); }