Пример #1
0
        public async Task <IActionResult> CreateInput(Transaction_Detail_Dto model)
        {
            if (await _service.CreateInput(model))
            {
                return(Ok());
            }

            throw new Exception("Creating the rack location failed on save");
        }
Пример #2
0
        public async Task <IActionResult> CreateInput(Transaction_Detail_Dto model)
        {
            var updateBy = User.FindFirst(ClaimTypes.Name).Value;

            if (await _service.CreateInput(model, updateBy))
            {
                return(Ok());
            }

            throw new Exception("Creating the rack location failed on save");
        }