public static VendorFoodOption ToDataModel(this C.FoodOption domain) { var model = new VendorFoodOption { }; domain.Map(model); return model; }
static void Map(this C.FoodOption foodOption, VendorFoodOption existing) { existing.Cost = foodOption.Cost; existing.Description = foodOption.Description; existing.Name = foodOption.Name; existing.OrganizationId = foodOption.VendorId; existing.Price = foodOption.Price; existing.VendorFoodOptionId = foodOption.FoodOptionId; }