コード例 #1
0
        public async Task <IActionResult> AddReceiptItem(NewReceiptItem newreceipt)
        {
            bool isAdded = await _eventService.AddReceiptItem(newreceipt);

            if (isAdded)
            {
                return(Ok(new { Status = "OK", Message = "Poprawnie dodano nową pozycje" }));
            }
            return(Ok(new { Status = "Exists", Message = "Już taka pozycja jest na paragonie" }));
        }