예제 #1
0
        public async Task <ApiResourceDTO> AddAsync(ApiResourceDTO dto)
        {
            var entity = dto.ToEntity();
            await Apis.AddAsync(entity);

            await Context.SaveChangesAsync();

            return(entity.ToDTO());
        }