public override bool Equals(System.Object otherVeterinarian)
 {
     if (!(otherVeterinarian is Veterinarian))
     {
         return(false);
     }
     else
     {
         Veterinarian newItem = (Veterinarian)otherVeterinarian;
         return(this.VeterinarianId.Equals(newItem.VeterinarianId));
     }
 }
 public void Remove(Veterinarian veterinarian)
 {
     db.Veterinarians.Remove(veterinarian);
     db.SaveChanges();
 }
 public Veterinarian Save(Veterinarian veterinarian)
 {
     db.Veterinarians.Add(veterinarian);
     db.SaveChanges();
     return(veterinarian);
 }
 public Veterinarian Edit(Veterinarian veterinarian)
 {
     db.Entry(veterinarian).State = EntityState.Modified;
     db.SaveChanges();
     return(veterinarian);
 }