public async Task <ActionResult <PhotosDto[]> > Get() { try { var results = await _eventRepository.GetPhotos(); var mappedEntities = _mapper.Map <PhotosDto[]>(results); return(Ok(mappedEntities)); } catch (Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Database Failure")); } }