コード例 #1
0
            public async Task <ActionResult> ExixtingUserTransactionRegistration(long userId, [FromBody] UserTransactionRegistrationDto registerationDto)
            {
                if (!_customAuth.IsUserAllowedAccess(userId, HttpContext))
                {
                    return(StatusCode(401));
                }
                var response = await _tranService.AddTransactionForExistingUser(userId, registerationDto);

                return(StatusCode(response.Status, response));
            }