Example #1
0
        public async Task <IActionResult> AddCount(string barcode, int count)
        {
            var result = await _repo.AddExisting(barcode, count);

            if (result != null)
            {
                return(Ok(result));
            }
            return(StatusCode(500, "Something went wrong. Try again later"));
        }