public bool DeleteTemplateType(TemplateType templateType) { if (templateType == null) return false; _unitOfWork.TemplateTypeRepository.Delete(templateType); _unitOfWork.Save(); return true; }
public bool EditTemplateType(TemplateType templateType) { _unitOfWork.TemplateTypeRepository.Edit(templateType); _unitOfWork.Save(); return true; }
public bool AddTemplateType(TemplateType templateType) { _unitOfWork.TemplateTypeRepository.Add(templateType); _unitOfWork.Save(); return true; }