public bool CreateMailTemplate(CreateMailTemplateModel model)
 {
     var newTemplate = model.MapFrom<CreateMailTemplateModel, MailTemplate>();
     repository.Add(newTemplate);
     repository.SaveChanges();
     return true;
 }
 public ActionResult Create(CreateMailTemplateModel model)
 {
     if (ModelState.IsValid)
     {
         if (service.CreateMailTemplate(model))
         {
             return RedirectToAction("Index");
         }
     }
     return View(model);
 }