Exemplo n.º 1
0
        public async Task <IActionResult> Get([FromRoute] int id)
        {
            var funding = await _fundingService.GetFunding(id);

            if (funding != null)
            {
                return(new ObjectResult(funding));
            }
            else
            {
                return new ObjectResult(null)
                       {
                           StatusCode = (int)HttpStatusCode.NotFound
                       }
            };
        }