public void SaveACAccountPosition(AccountBasicInfoRequest account)
        {
            string            acctid           = _accountsRepository.CreateAccountBasicInfo(account);
            AssetClassAccount ACacct           = _accountsRepository.GetAllAssetPositions();
            SaveAssetClassPositionsRequest req = new SaveAssetClassPositionsRequest()
            {
                AccountId   = acctid,
                Balance     = 1000,
                ACPositions = new List <SaveAssetClassPosition>()
                {
                    new SaveAssetClassPosition()
                    {
                        assetClass = new SaveAssetClass()
                        {
                            SecId = ACacct.ACPositions[0].assetClass.SecId
                        }, Pct = 50
                    },
                    new SaveAssetClassPosition()
                    {
                        assetClass = new SaveAssetClass()
                        {
                            SecId = ACacct.ACPositions[1].assetClass.SecId
                        }, Pct = 50
                    }
                }
            };
            bool res = _accountsRepository.SaveAssetAccountPositions(req);

            Assert.True(res);
        }
 public IActionResult Save([FromBody] SaveAssetClassPositionsRequest asssetClassPositions)
 {
     return(Ok(_accountsRepository.SaveAssetAccountPositions(asssetClassPositions)));
 }