/// <summary> /// Handling get request and response /// </summary> /// <param name="request">Messaging.MovieGenres.GetMovieGenreRequest</param> /// <returns>Messaging.MovieGenres.GetMovieGenreResponse</returns> public GetMovieGenreResponse GetMovieGenre(GetMovieGenreRequest request) { var response = new GetMovieGenreResponse() { Request = request, ResponseToken = Guid.NewGuid() }; try { response.MovieGenres = _repository.FindAllBy(request.Id).MapToViews(); response.Success = true; } catch (Exception ex) { response.Message = ex.Message; response.Success = false; } return(response); }