Exemple #1
0
 public bool DeleteAbout(AboutDescription aboutDescription)
 {
     try
     {
         db.Entry(aboutDescription).State = EntityState.Deleted;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemple #2
0
 public bool InsertAbout(AboutDescription aboutDescription)
 {
     try
     {
         db.AboutDescriptions.Add(aboutDescription);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }