Ejemplo n.º 1
0
 public bool DeleteTemplateType(TemplateType templateType)
 {
     if (templateType == null) return false;
        _unitOfWork.TemplateTypeRepository.Delete(templateType);
        _unitOfWork.Save();
        return true;
 }
Ejemplo n.º 2
0
 public bool EditTemplateType(TemplateType templateType)
 {
     _unitOfWork.TemplateTypeRepository.Edit(templateType);
        _unitOfWork.Save();
        return true;
 }
Ejemplo n.º 3
0
 public bool AddTemplateType(TemplateType templateType)
 {
     _unitOfWork.TemplateTypeRepository.Add(templateType);
        _unitOfWork.Save();
        return true;
 }