public bool Edit(BatchModel batch) { if (batch != null) { db.Entry(batch).State = EntityState.Modified; return(db.SaveChanges() > 0); } return(false); }
public bool Update(FeedbackModel feedback) { if (feedback != null) { db.Entry(feedback).State = EntityState.Modified; return(db.SaveChanges() > 0); } return(false); }
public bool Update(InducteeModel Inductee) { if (Inductee != null) { db.Entry(Inductee).State = EntityState.Modified; return(db.SaveChanges() > 0); } return(false); }
public bool Update(TrainersFeedbackModel model) { if (model != null) { db.Entry(model).State = EntityState.Modified; return(db.SaveChanges() > 0); } return(false); }