Example #1
0
        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());
        }
Example #2
0
 public async Task Delete(string hallId, string id)
 {
     await _standsRepository.RemoveAsync(hallId, id);
 }