public async Task <IActionResult> DeleteAsync(string hallId, string id) { hallId.ValidateId(); id.ValidateId(); var stand = await _standsRepository.GetAsync(hallId, id); if (stand == null) { return(NotFound()); } await _standsRepository.RemoveAsync(hallId, stand.Id); return(NoContent()); }
public async Task Delete(string hallId, string id) { await _standsRepository.RemoveAsync(hallId, id); }