public async Task ShouldDeleteEntry() { await _service.DeleteByIdAsync(_routeId); var route = await _service.GetByIdAsync(_routeId); Assert.Null(route); }
public async Task <IActionResult> DeleteByIdAsync( [Range(1, int.MaxValue, ErrorMessage = ErrorConstants.IdLessThanOneError)] [FromRoute] int id) { await _routeService.DeleteByIdAsync(id); return(NoContent()); }
public async Task Delete(int id) { await _routeService.DeleteByIdAsync(id); }