public async Task <IActionResult> GetProveedor(int id)
        {
            try
            {
                var proveedor = await _proveedorRepository.FindById(id);

                if (proveedor == null)
                {
                    return(NotFound());
                }
                var response = _mapper.Map <ProveedorGetDTO>(proveedor);
                return(Ok(response));
            }
            catch (Exception e)
            {
                return(InternalError($"{e.Message} - {e.InnerException}"));
            }
        }