public async Task <ActionResult <PublicApi.v1.DTO.FoodItemDepletedReport> > GetFoodItemDepletedReport(int id)
        {
            var foodItemDepletedReport = await _bll.FoodItemDepletedReports.FindAsync(id);

            if (foodItemDepletedReport == null)
            {
                return(NotFound());
            }

            return(FoodItemDepletedReportMapper.MapFromBLL(foodItemDepletedReport));
        }
        public async Task <ActionResult <PublicApi.v1.DTO.FoodItemDepletedReport> > DeleteFoodItemDepletedReport(int id)
        {
            var foodItemDepletedReport = await _bll.FoodItemDepletedReports.FindAsync(id);

            if (foodItemDepletedReport == null)
            {
                return(NotFound());
            }

            // check, that the object being used is really belongs to logged in user
            if (!await _bll.FoodItemDepletedReports.BelongsToUserAsync(foodItemDepletedReport.AppUserId, User.GetUserId()))
            {
                return(NotFound());
            }

            _bll.FoodItemDepletedReports.Remove(foodItemDepletedReport);
            await _bll.SaveChangesAsync();

            return(FoodItemDepletedReportMapper.MapFromBLL(foodItemDepletedReport));
        }