public async Task <ApiResourceDTO> AddAsync(ApiResourceDTO dto) { var entity = dto.ToEntity(); await Apis.AddAsync(entity); await Context.SaveChangesAsync(); return(entity.ToDTO()); }