public override void UpdateNews(Web.News.News news)
 {
     var context = new MyLifeEntities();
     var obj = new tblNews {Id = news.Id};
     context.AttachTo("tblNews", obj);
     news.CopyToObject(obj);
     context.SaveChanges();
 }
 public override int InsertNews(Web.News.News news)
 {
     var context = new MyLifeEntities();
     var obj = new tblNews();
     news.CopyToObject(obj);
     context.AddTotblNews(obj);
     context.SaveChanges();
     return obj.Id;
 }