public ActionResult <EnvironmentsDTO> GetById(int id)
        {
            var _environments = _environmentsService.GetById(id);

            if (_environments != null)
            {
                var retorno = _mapper.Map <List <EnvironmentsDTO> >(_environments);
                return(Ok(retorno));
            }
            else
            {
                return(NoContent());
            }
        }