public bool Update(LessonsInfo entity) { using (var _dbContext = new simpleDbContext()) { _dbContext.LessonsInfo.AddOrUpdate(entity); return(_dbContext.SaveChanges() > 0); } }
public LessonsInfo Create(LessonsInfo entity) { using (var _dbContext = new simpleDbContext()) { _dbContext.LessonsInfo.Add(entity); _dbContext.SaveChanges(); return(entity); } }
public bool Update(LessonsInfo entity) { return(lessonsInfoDal.Update(entity)); }
public LessonsInfo Create(LessonsInfo entity) { return(lessonsInfoDal.Create(entity)); }