static void Map(this C.FoodCategory foodCategory, VendorFoodCategory existing) { existing.Name = foodCategory.Name; existing.CategoryType = foodCategory.CategoryType.ToString(); existing.OrganizationID = foodCategory.VendorId; }
public static VendorFoodCategory ToDataModel(this C.FoodCategory domain) { if (domain == null) return null; var data = new VendorFoodCategory (); domain.Map(data); return data; }