public bool Update(Customer model)
 {
     _db.Entry(model).State = EntityState.Modified;
     return(_db.SaveChanges() > 0);
 }
 public override bool Update(Stock entity)
 {
     _db.Entry(entity).State = EntityState.Modified;
     return(_db.SaveChanges() > 0);
 }