コード例 #1
0
        public IActionResult PostUserInvestment([FromBody] UserInvestment investment)
        {
            var result = _repository.AddUserInvestment(investment);

            if (result != ResponseCategory.Succeeded)
            {
                return(BadRequest(result)); // In order to show proper error message in the Frontend.
            }
            return(Ok(result));
        }