Exemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            var expense = await ctx.FindAsync <Expense>(id);

            if (expense == null)
            {
                return(NotFound());
            }
            return(Ok(expense));
        }