예제 #1
0
        public async Task <ResultEntity> AddOrUpdateAsync(BoxEditDto editDto)
        {
            var result = await _boxManager.AddOrUpdateAsync(Mapper.Map <Box>(editDto));

            if (result.Success)
            {
                await _unitOfWork.CommitAsync();
            }
            return(result);
        }