Пример #1
0
        public async Task <IActionResult> DeleteByIdAsync(
            [Range(1, int.MaxValue, ErrorMessage = ErrorConstants.IdLessThanOneError)]
            [FromRoute] int id)
        {
            await _itemListService.DeleteByIdAsync(id);

            return(NoContent());
        }