public PizzaBAL() { pizzaDAL = new PizzaDAL(); mapper = new PizzaMapper(); }
public List <PizzaListViewModel> GetAllPizza() { List <Pizza> dbPizzas = _pizzaRepository.GetAll(); return(dbPizzas.Select(x => PizzaMapper.PizzaToPizzaListViewModel(x)).ToList()); }