public IEnumerable <Pizza1> ReadInPizza() { var getPizza = from P in PC.Pizza select MapPizza.Map(P); return(getPizza); }
public void CreatePizza(Pizza1 pizza) { PC.Pizza.Add(MapPizza.Map(pizza)); // this will generate insertMapper.Map(order) PC.SaveChanges(); // this will execute the above generate insert query }