public ActionResult Materials(string template)
 {
     using (DBAgent.DBAgent agent = new DBAgent.DBAgent())
     {
         ViewBag.materials = agent.GetMaterials(template);
     }
     return(View());
 }
 public ActionResult Materials()
 {
     using (DBAgent.DBAgent agent = new DBAgent.DBAgent())
     {
         ViewBag.materials = agent.GetMaterials(null);
     }
     return(View());
 }
 public ActionResult ProductMaterials(string template)
 {
     using (DBAgent.DBAgent agent = new DBAgent.DBAgent())
     {
         ViewBag.Products  = agent.GetProducts(null, null, null, template);
         ViewBag.materials = agent.GetMaterials("");
     }
     return(View());
 }