Beispiel #1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(NewsModel model)
 {
     return(dal.Add(model));
 }
Beispiel #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(NewsEntity model)
 {
     return(dal.Add(model));
 }
 public void Add(News data)
 {
     _context.Add(data);
 }