Ejemplo n.º 1
0
        public async Task <IActionResult> Put(Guid hallId, HallModel hallModel)
        {
            var hall = await _hallService.GetAsync(hallId);

            _mapper.Map(hallModel, hall);
            var updatedHall = await _hallService.UpdateAsync(hallId, hall);

            return(Ok(updatedHall));
        }