public async Task <IActionResult> DeleteByIdAsync( [Range(1, int.MaxValue, ErrorMessage = ErrorConstants.IdLessThanOneError)] [FromRoute] int id) { await _itemListService.DeleteByIdAsync(id); return(NoContent()); }