public async Task <ResultEntity> AddOrUpdateAsync(RoleEditDto editDto) { var result = await _roleManager.AddOrUpdateAsync(Mapper.Map <Role>(editDto)); if (result.Success) { await _unitOfWork.CommitAsync(); } return(result); }
public async Task <ResultEntity> AddOrUpdateAsync(RoleEditDto editDto) { var result = await _roleManager.AddOrUpdateAsync(Mapper.Map <Role>(editDto)); if (result.Success) { await _unitOfWork.CommitAsync(); } return(result); }