public ActionResult Edit(TemplateModel model, string templateType)
 {
     SetConditions(templateType);
     model.Update();
     return View("AdminIndex");
 }
 public ActionResult Create(TemplateModel model, string templateType)
 {
     SetConditions(templateType);
     model.Insert();
     return View("AdminIndex");
 }