public JsonResult IsEmailTemplateNameUnique(string name, int id) { return(Json(_emailTemplateRepository.IsEmailTemplateNameUnique(id, name), JsonRequestBehavior.AllowGet)); }