public void Update(DBAuthor dBAuthor)
 {
     using (DBBookServiceContext db = new DBBookServiceContext())
     {
         db.Entry(dBAuthor).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void Remove(DBAuthor dBAuthor)
 {
     using (DBBookServiceContext db = new DBBookServiceContext())
     {
         db.DBAuthors.Remove(dBAuthor);
         db.SaveChanges();
     }
 }
 public DBAuthor Insert(DBAuthor dBAuthor)
 {
     using (DBBookServiceContext db = new DBBookServiceContext())
     {
         db.DBAuthors.Add(dBAuthor);
         db.SaveChanges();
         return(dBAuthor);
     }
 }