Example #1
0
        public async Task <IActionResult> RegisterOperator([FromBody] OperatorRequest operatorRequest)
        {
            var result = await operatorProvider.PostOperatorAsync(operatorRequest);

            if (result.IsSuccess)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }