Exemple #1
0
        public IActionResult GetProdcutReviews()
        {
            string UserID = User.GetUserIdToken();
            var    model  = _buyerRepository.GetIQueryable().Include(a => a.UserProduct).ThenInclude(a => a.User)
                            .Where(a => (a.IsSold == true) && (a.UserId == UserID));
            var modingMapper = _mapper.Map <IEnumerable <Buys>, IEnumerable <ProductSellersViewModel> >(model);

            return(Ok(modingMapper));
        }