Пример #1
0
 public bool DeleteStackEvent(StackEvent entity)
 {
     if (entity == null) return false;
     _unitOfWork.StackEventRepository.Delete(entity);
     _unitOfWork.Save();
     return true;
 }
Пример #2
0
        public bool AddStackEvent(StackEvent entity)
        {
            try
            {
                _unitOfWork.StackEventRepository.Add(entity);
                _unitOfWork.Save();
            }
            catch (Exception ex)
            {

                throw;
            }

            return true;
        }
Пример #3
0
 public bool EditStackEvent(StackEvent entity)
 {
     _unitOfWork.StackEventRepository.Edit(entity);
     _unitOfWork.Save();
     return true;
 }