public void Delete(TextContentCode code) { _textContentsRepository.Delete(Get(code)); }
public TextContent Get(TextContentCode code) { return(_textContentsRepository.GetAll().SingleOrDefault(content => content.Code == code)); }