Beispiel #1
0
        public UserVM GetUserById(int id)
        {
            var user = _userReop.GetById(id);

            var vm = Mappers.MapUserToUserVM(user);

            return(vm);
        }
        public MoviesVM GetMovieById(int id)
        {
            var movie = _movieRepo.GetById(id);
            var vm    = Mappers.FromMovieToMovieVM(movie);

            return(vm);
        }
Beispiel #3
0
        public OrderVM GetOrderById(int id)
        {
            var order = _orderReop.GetById(id);
            var mvs   = Mappers.FromOrderToOrderVM(order);

            return(mvs);
        }