示例#1
0
        public async Task <IActionResult> ChangeItemStatus([FromForm] Guid id)
        {
            var item = await _repository.GetSingleAsync(id);

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

            await _repository.ChangeItemStatusAsync(item);

            return(Ok());
        }