Exemple #1
0
 /// <summary>
 /// 소스사이트 생성
 /// </summary>
 /// <param name="site">소스사이트 class</param>
 public void SourceSiteCreate(SourceSite site)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "source_site");
     MongoHelper.Insert<SourceSite>(site);
 }
Exemple #2
0
 /// <summary>
 /// 소스사이트 저장
 /// </summary>
 /// <param name="site">소스사이트 class</param>
 public void SourceSiteSave(SourceSite site)
 {
     GEPMongoDacHelper MongoHelper = new GEPMongoDacHelper("gep", "source_site");
     MongoHelper.Save<SourceSite>(site);
 }
Exemple #3
0
        public GepAdminResult SourceSiteAdd(string siteName, string use, string loginId)
        {
            GepAdminResult resultData = new GepAdminResult();
            try
            {
                SourceSite data = new SourceSite();
                data.siteid = ObjectId.GenerateNewId();
                data.site_name = siteName;
                data.use_yn = use == "Y" ? true : false;
                data.reg_id = loginId;
                data.reg_date = DateTime.Now;

                new AdminDac().SourceSiteCreate(data);
                resultData.result = "S";
            }
            catch (Exception ex)
            {
                resultData.message = ex.Message;
                resultData.result = "F";
            }
            return resultData;
        }