예제 #1
0
        public void Add(Game movie)
        {
            #region Add

            try
            {
                _repository.Create(movie);
                _unitOfWork.SaveChanges();
            }
            catch (Exception)
            {
                throw;
            }

            #endregion
        }
예제 #2
0
        public void Update(Game movie)
        {
            #region Update

            try
            {
                _repository.Update(movie);
                _unitOfWork.SaveChanges();
            }
            catch (Exception)
            {
                throw;
            }

            #endregion
        }