Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            AW_ProductModelRepo prodModR = new AW_ProductModelRepo();

            prodModR.CreateGetClothingProcedureIfNull();
            PrintProductsByGender("Men%");
            PrintProducts();
            Console.ReadLine();
        }
Exemplo n.º 2
0
        public ActionResult ListProductsByGender(string choice)
        {
            AW_ProductModelRepo aw_pmR = new AW_ProductModelRepo();

            aw_pmR.CreateGetClothingProcedureIfNull();

            if (choice == "")
            {
                return(View("Error"));
            }

            List <AW_ProductModel> list = aw_pmR.GetProductsByGender(choice);

            return(View(list));
        }