public ActionResult Create([FromBody] DTO.Brewery dto)
        {
            // Validation
            if (!_validationConductor.CanCreate(dto, out var errors))
            {
                return(BadRequest());
            }

            var brewery = _breweryConductor.Create(_mapper.Map <Brewery>(dto));

            if (brewery.HasErrors || brewery.ResultObject is null)
            {
                return(BadRequest(brewery.Errors));
            }

            dto = _mapper.Map <DTO.Brewery>(brewery.ResultObject);

            return(CreatedAtAction(nameof(Get), new { id = dto.Id }, dto));
        }
        public IActionResult Update(
            [FromRoute] long id,
            [FromBody] DTO.Brewery dto)
        {
            // Validation
            if (!_validationConductor.CanUpdate(id, dto, out _))
            {
                return(BadRequest());
            }

            var brewery = _breweryConductor.Update(_mapper.Map <Brewery>(dto));

            if (brewery.HasErrors || brewery.ResultObject is null)
            {
                return(BadRequest(brewery.Errors));
            }

            _ = _mapper.Map <DTO.Brewery>(brewery.ResultObject);

            return(Ok());
        }