public ActionResult MaterialReg(string template)
 {
     using (DBAgent.DBAgent agent = new DBAgent.DBAgent())
     {
         ViewBag.material_reg = agent.GetMaterialReg(template);
     }
     return(View());
 }