public IEnumerable <Store1> ReadInStore() { var getPizza = from P in PC.Store select MapStore.Map(P); return(getPizza); }
public void CreateStore(Store1 Store) { //if (PC.CxOrder.Any(c => c.OrderId == order.) || order.Phone == null) //{ // Console.WriteLine($"This order with username {order.Username} already exists and cannot be added"); // return; //} //else PC.Store.Add(MapStore.Map(Store)); // this will generate insertMapper.Map(order) PC.SaveChanges(); // this will execute the above generate insert query }