Exemplo n.º 1
0
 public bool Update(tbl_Footer footer)
 {
     try
     {
         var foot = db.tbl_Footer.Find(footer.ID);
         foot.Contents     = footer.Contents;
         foot.ModifiedDate = DateTime.Now;
         foot.Status       = footer.Status;
         db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public long Insert(tbl_Footer footer)
 {
     footer.CreatedDate = DateTime.Now;
     footer.Status      = true;
     return(footer.ID);
 }