예제 #1
0
        public int Add(CachedEntity cacheModel)
        {
            _db.CachedWords.Add(cacheModel);
            _db.SaveChanges();

            return(cacheModel.Id);
        }
 public int Add(UserEntity userEntity)
 {
     _db.Users.Add(userEntity);
     _db.SaveChanges();
     return(userEntity.Id);
 }
예제 #3
0
 public int Add(RequestEntity requestEntity)
 {
     _db.RequestWords.Add(requestEntity);
     _db.SaveChanges();
     return(requestEntity.Id);
 }
예제 #4
0
 public int Add(WordEntity wordEntity)
 {
     _db.Words.Add(wordEntity);
     _db.SaveChanges();
     return(wordEntity.Id);
 }