Exemplo n.º 1
0
 public List <MovieViewModel> Post(List <MovieViewModel> models)
 {
     try
     {
         var result = _championshipService.IdentifyTheWinner(_mapper.Map <List <MovieViewModel>, List <Movie> >(models));
         return(_mapper.Map <List <MovieViewModel> >(result));
     }
     catch (Exception ex)
     {
         return(new List <MovieViewModel>());
     }
 }