public bool Create(BatchModel _batch) { var batch = db.Batch.SingleOrDefault(b => b.Name == _batch.Name.Trim()); if (batch != null) { return(false); } db.Batch.Add(_batch); return(db.SaveChanges() > 0); }
public bool Create(InducteeModel Inductee) { db.Inductee.Add(Inductee); return(db.SaveChanges() > 0); }
public bool Create(TrainersFeedbackModel model) { db.TrainersFeedback.Add(model); return(db.SaveChanges() > 0); }
public void Create(Trainer_UserType_Map_Model map_Model) { map_Model.Map_Id = db.TrainerTraineeUserMapping.Count() > 0 ? db.TrainerTraineeUserMapping.Max(n => n.Map_Id) + 1 : 1; db.TrainerTraineeUserMapping.Add(map_Model); db.SaveChanges(); }
public bool Create(FeedbackModel Feedback) { db.Feedback.Add(Feedback); return(db.SaveChanges() > 0); }
public int Create(TrainerModel trainer) { db.Tranner.Add(trainer); db.SaveChanges(); return(trainer.Id); }