public IHttpActionResult GetAllHalls() { try { IEnumerable <HallDTO> hallsDTO = _hallService.GetAllHalls(); List <HallModel> halls = new List <HallModel>(); foreach (HallDTO h in hallsDTO) { halls.Add(_mapper.Map <HallModel>(h)); } return(Ok(halls)); } catch (Exception ex) { return(InternalServerError(ex)); } }