예제 #1
0
파일: Batch.cs 프로젝트: mkiran1992/Proseed
 public bool Edit(BatchModel batch)
 {
     if (batch != null)
     {
         db.Entry(batch).State = EntityState.Modified;
         return(db.SaveChanges() > 0);
     }
     return(false);
 }
예제 #2
0
        public bool Update(FeedbackModel feedback)
        {
            if (feedback != null)
            {
                db.Entry(feedback).State = EntityState.Modified;
                return(db.SaveChanges() > 0);
            }

            return(false);
        }
예제 #3
0
 public bool Update(InducteeModel Inductee)
 {
     if (Inductee != null)
     {
         db.Entry(Inductee).State = EntityState.Modified;
         return(db.SaveChanges() > 0);
     }
     return(false);
 }
예제 #4
0
 public bool Update(TrainersFeedbackModel model)
 {
     if (model != null)
     {
         db.Entry(model).State = EntityState.Modified;
         return(db.SaveChanges() > 0);
     }
     return(false);
 }