Exemplo n.º 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");
        }
Exemplo n.º 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");
        }