Exemplo n.º 1
0
        public async Task <TopicClassification> Create(TopicClassification entity)
        {
            var topicClassification = _repositoryTopicClassification.FirstOrDefault(x => x.Id == entity.Id);

            if (topicClassification != null)
            {
                throw new UserFriendlyException("Already Exist");
            }
            else
            {
                return(await _repositoryTopicClassification.InsertAsync(entity));
            }
        }
Exemplo n.º 2
0
 public void Update(TopicClassification entity)
 {
     _repositoryTopicClassification.Update(entity);
 }