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); }
public OrderVM GetOrderById(int id) { var order = _orderReop.GetById(id); var mvs = Mappers.FromOrderToOrderVM(order); return(mvs); }