Example #1
0
        public async Task <IActionResult> DeleteAsync(string id)
        {
            id.ValidateId();

            var hall = await _hallsRepository.GetAsync(id);

            if (hall == null)
            {
                return(NotFound());
            }

            await _hallsRepository.RemoveAsync(hall.Id);

            return(NoContent());
        }
Example #2
0
 public void Delete(string id)
 {
     _hallsRepository.RemoveAsync(id);
 }