public ActionResult GetMetaDataWithMovieId(int movieId) { try { var record = _metadataservice.GetMetaDataWithMovieId(movieId); if (record == null || !record.Any()) { IDictionary <string, string> data_error = new Dictionary <string, string>(); data_error.Add("error_message", $"There's no data in movie Id { movieId }"); return(NotFound(data_error)); } return(Ok(record)); } catch (CsvHelper.CsvHelperException ex) { return(NotFound()); } catch (Exception ex) { throw ex; } }