public ActionResult Fabrics(string id)
        {
            NewFabricModel model;

            if (!string.IsNullOrEmpty(id))
            {
                // model = BuilderGarments.GetGarments(id).FirstOrDefault();
                model = BuilderFabrics.BuildFabricsModel();
            }

            else
            {//new garment with empty model to fill out
                model = BuilderFabrics.BuildFabricsModel();
            }
            return(View("FabricsEdit", model));
        }
Example #2
0
        public ActionResult Fabric()
        {
            var model = BuilderFabrics.GetFabrics();

            return(View("FabricView", model));
        }