예제 #1
0
        public void DeleteForm(string keyValue)
        {
            NewsInfoEntity newsInfoEntity = new NewsInfoEntity();

            newsInfoEntity.Modify(keyValue);
            newsInfoEntity.Remove();
            service.Update(newsInfoEntity);
        }
예제 #2
0
 public void SubmitForm(NewsInfoEntity newsInfoEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         newsInfoEntity.Modify(keyValue);
         service.Update(newsInfoEntity);
     }
     else
     {
         newsInfoEntity.Create();
         service.Insert(newsInfoEntity);
     }
 }