Beispiel #1
0
        public IActionResult MakeTransfer(TransferAccount transferAccount)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = _service.MakeTransfer(transferAccount);

            if (result == null)
            {
                return(BadRequest());
            }

            return(Ok(result));
        }