public TagAddOrUpdateResponseDto AddOrUpdate(TagAddOrUpdateRequestDto request)
 {
     var entity = repository.GetAll()
         .Where(x => x.Id == request.Id && x.IsDeleted == false)
         .FirstOrDefault();
     if (entity == null) repository.Add(entity = new Tag());
     entity.Name = request.Name;
     entity.Description = request.Description;
     uow.SaveChanges();
     return new TagAddOrUpdateResponseDto(entity);
 }
 public TagDto(Tag entity)
 {
     this.Id = entity.Id;
     this.Name = entity.Name;
     this.Description = entity.Description;
 }
 public TagAddOrUpdateResponseDto(Tag entity)
     : base(entity)
 {
 }