public IHttpActionResult GetMovieShowings(MovieNameDTO movie) // GETS MOVIESHOWINGS { MoviesManager mmgr = new MoviesManager(); int movieId = mmgr.GetMovieIdFromName(movie.MovieName); if (movieId == 0) { TextResult failedToFindMovieShowing = new TextResult("Movieshowing does not exist!", msg); return(failedToFindMovieShowing); } var movieList = mmgr.GetMovieShowingsFromMovieId(movieId); // Gets movieshowingtimes and puts in list return(Ok(movieList)); }