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)); } }
public void Update(TopicClassification entity) { _repositoryTopicClassification.Update(entity); }