public bool DeleteTemplateField(TemplateField templateFields)
 {
     if (templateFields == null) return false;
     _unitOfWork.TemplateFieldRepository.Delete(templateFields);
     _unitOfWork.Save();
     return true;
 }
 public bool EditTemplateField(TemplateField templateFields)
 {
     _unitOfWork.TemplateFieldRepository.Edit(templateFields);
     _unitOfWork.Save();
     return true;
 }