public async Task DeleteMovie(DeleteMovieInput input)
 {
     await _movieRepository.DeleteAsync(input.Id);
 }
Example #2
0
        // sample use:

        /*mutation {
         *  createCompany(inputCompany: {
         *      name: "Tnuva",
         *      revenue: 210000
         *  })
         *  {
         *      id
         *      name
         *      revenue
         *  }
         * }
         */
        //test
        public Movie DeleteMovie(DeleteMovieInput inputMovie)
        {
            return(_movieService.Delete(inputMovie));
        }