示例#1
0
        static void Map(this C.FoodCategory foodCategory, VendorFoodCategory existing)
        {
            existing.Name = foodCategory.Name;

            existing.CategoryType = foodCategory.CategoryType.ToString();

            existing.OrganizationID = foodCategory.VendorId;
        }
示例#2
0
        public static VendorFoodCategory ToDataModel(this C.FoodCategory domain)
        {
            if (domain == null) return null;

            var data = new VendorFoodCategory ();

            domain.Map(data);

            return data;
        }