示例#1
0
        public HttpResponseMessage PayForBasket(Users user)
        {
            var basket = _basketRepository.GetFirstOrDefault(z => z.UserId == user.Id && z.DateSuccess == null);

            if (basket == null)
            {
                return(ErrorResult());
            }
            _basketRepository.SuccessBasket(basket);
            return(SuccessResult());
        }