コード例 #1
0
        public async Task <IActionResult> DeleteReceipt(int id)
        {
            var itemReceiptFromRepo = await _repo.GetItemAsync(id);

            if (await _repo.DeleteItemAsync(id))
            {
                return(Ok());
            }

            return(BadRequest());
        }