예제 #1
0
        public async Task <RoleDto> CreateAsync(RoleDto role)
        {
            var dataModel = role.Convert();

            await this.repo.Roles.AddAsync(dataModel);

            await this.repo.SaveChangesAsync();

            return(dataModel.Convert());
        }