File tree Expand file tree Collapse file tree
API/SOFTURE.Common.StronglyTypedIdentifiers/API/Parsers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using FastEndpoints ;
2+ using Microsoft . Extensions . Primitives ;
23using SOFTURE . Language . Common ;
34
45namespace SOFTURE . Common . StronglyTypedIdentifiers . API . Parsers ;
56
67public static class IdentifierParsers
78{
8- public static ParseResult GuidParser < TIdentifier > ( object ? input )
9+ public static ParseResult GuidParser < TIdentifier > ( StringValues input )
910 where TIdentifier : IIdentifier
1011 {
1112 var success = Guid . TryParse ( input ? . ToString ( ) , out var result ) ;
@@ -15,7 +16,7 @@ public static ParseResult GuidParser<TIdentifier>(object? input)
1516 return new ParseResult ( success , identifier ) ;
1617 }
1718
18- public static ParseResult NumberParser < TIdentifier > ( object ? input )
19+ public static ParseResult NumberParser < TIdentifier > ( StringValues input )
1920 where TIdentifier : IIdentifier
2021 {
2122 var success = int . TryParse ( input ? . ToString ( ) , out var result ) ;
You can’t perform that action at this time.
0 commit comments