예제 #1
0
파일: Dac_Bom.cs 프로젝트: tomochandv/SND
 public void OutCompanySave(OutCompanyModel outcompany)
 {
     new MongoDacHelper("outcompany").Save<OutCompanyModel>(outcompany);
 }
예제 #2
0
 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);
 }