public async Task <IActionResult> GetReviewsList(int id)
        {
            var model = new IndexBusinessUnitViewModel();

            var reviewDTOs = await this.reviewService.GetAllReviewsByBusinessUnitIdAsync(id);

            model.Reviews = reviewDTOs.Select(x => x.MapFrom()).ToList();

            return(PartialView("_ReviewsPartial", model));
        }
        public async Task <IActionResult> GiveLikeToBusinessUnit(int businessUnitId)
        {
            var model = new IndexBusinessUnitViewModel();

            await this.businessUnitService.GiveLikeBusinessUnitAsync(businessUnitId);

            var businessUnit = await this.businessUnitService.GetBusinessUnitById(businessUnitId);

            return(Json(businessUnit.Likes));
        }
        public async Task <IActionResult> Details(int id)
        {
            var model = new IndexBusinessUnitViewModel();

            var businessUnit = await this.businessUnitService.GetBusinessUnitById(id);

            model.BusinessUnit = businessUnit.MapFrom();

            var reviewDTOs = await this.reviewService.GetAllReviewsByBusinessUnitIdAsync(id);

            model.Reviews = reviewDTOs.Select(x => x.MapFrom()).ToList();

            model.Logbooks = await this.businessUnitService.GetAllLogbooksForBusinessUnitAsync(businessUnit.Id);

            return(View(model));
        }