public bool Ekle(Entities.Exam_Date model) { var result = false; try { this.dbContext.Exam_Date.Add(model); this.dbContext.SaveChanges(); result = true; } catch (Exception) { } return(result); }
public bool Güncelle(int index, Entities.Exam_Date model) { var result = false; try { var data = this.dbContext.Exam_Date.FirstOrDefault(x => x.id == index); data.exam_date1 = model.exam_date1; dbContext.SaveChanges(); result = true; } catch (Exception) { } return(result); }