public async Task <bool> Add(AuditType_D_Dto model) { var auditType = _mapper.Map <MES_Audit_Type_D>(model); _repoAuditDType.Add(auditType); return(await _repoAuditDType.SaveAll()); }
public async Task <bool> Add(AuditType_D_Dto model) { var auditType = _mapper.Map <MES_Audit_Type_D>(model); _repoauditTypeD.Add(auditType); try { return(await _repoauditTypeD.SaveAll()); } catch (System.Exception ex) { throw ex; } }