Exemplo n.º 1
0
        public IActionResult GetAccounts(Guid id)
        {
            if (id == Guid.Empty)
            {
                return(BadRequest());
            }
            var accounts = _service.GetAccounts(id);

            if (accounts == null)
            {
                return(BadRequest());
            }

            return(Ok(accounts));
        }