コード例 #1
0
        public virtual async Task <bool> CreateAsync(TDTO dto)
        {
            try
            {
                var entity = _mapper.Map <TEntity>(dto);

                return(await _commander.AddAsync(entity) > 0);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }