Example #1
0
 public static news InsertNews(news obj)
 {
     using (var db = new RescueEntities())
     {
         return(null);
     }
 }
Example #2
0
 //添加新闻
 public static news InsertNews(news news)
 {
     using (var db = new RescueEntities())
     {
         db.news.Add(news);
         db.SaveChanges();
         return(news);
     }
 }