Пример #1
0
        public IActionResult MakeReplenish(ReplenishAccount replenishAccount)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = _service.MakeReplenish(replenishAccount);

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

            return(Ok(new { id = result.Id, value = result.AccountBalance }));
        }