/// <summary> /// Get template manage model by log id /// </summary> /// <param name="logId"></param> /// <returns></returns> public TemplateManageModel GetTemplateManageModelByLogId(int?logId) { var log = _templateLogRepository.GetById(logId); return(log != null ? new TemplateManageModel(log) : new TemplateManageModel()); }
public TemplateLog GetById(object id) { return(_templateLogRepository.GetById(id)); }