public async Task AddLogItemAsync()
        {
            //PrepareTest
            var logItem = new ConsumeLogItem()
            {
                CustomerId = 1, DateOfConsume = DateTime.Today
            };
            var consumedDish = new ConsumedDish();

            _dishRepositoryMock.Setup(x => x.AddItemAsync(consumedDish)).ReturnsAsync(1).Verifiable();
            _mapperMock.Setup(m => m.Map <ConsumedDish>(logItem)).Returns(consumedDish);
            _dishService.AutoUpdateDailyReport = true;

            //Do test
            var result = await _dishService.AddLogItemAsync(logItem);

            //Assert
            _reportServiceMock.Verify(s => s.UpsertDailyReportAsync(1, DateTime.Today), Times.Once);
            _dishRepositoryMock.Verify(r => r.AddItemAsync(consumedDish), Times.Once);
            Assert.Equal(1, result);
        }
        public async Task <ActionResult> AddLogItem(ConsumeLogItem logItem)
        {
            var result = await _consumedDishService.AddLogItemAsync(logItem);

            return(Ok(new { result }));
        }