File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
LibraryManagement.Api/Brokers/Storages Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ //-----------------------------------------------------------
2+ // Copyright (c) Coalition of Good-Hearted Engineers
3+ // Free To Use To Build Reliable Library Management Solutions
4+ //-----------------------------------------------------------
5+
6+ using LibraryManagement . Api . Models . Foundations . Readers ;
7+
8+ namespace LibraryManagement . Api . Brokers . Storages
9+ {
10+ public partial interface IStorageBroker
11+ {
12+ ValueTask < Reader > InsertReaderAsync ( Reader reader ) ;
13+ }
14+ }
Original file line number Diff line number Diff line change @@ -11,5 +11,8 @@ namespace LibraryManagement.Api.Brokers.Storages
1111 public partial class StorageBroker
1212 {
1313 public DbSet < Reader > Readers { get ; set ; }
14+
15+ public async ValueTask < Reader > InsertReaderAsync ( Reader reader ) =>
16+ await InsertAsync ( reader ) ;
1417 }
1518}
You can’t perform that action at this time.
0 commit comments