public ActionResult <GuildReadDto> GetGuildById(int id) { var guildItem = _repository.GetGuildById(id); if (guildItem == null) { return(NotFound()); } return(Ok(_mapper.Map <GuildReadDto>(guildItem))); }