示例#1
0
        public bool Buy(List <Item> items, int totlacost)
        {
            var  res   = true;
            User _user = _currentUserService.GetUser();

            _user.Balance -= totlacost;
            _stocksService.UpdateList(items);
            res = _currentUserService.UpdateUser(_user);
            return(res);
        }