Пример #1
0
        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());
        }
Пример #2
0
        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;
            }
        }