mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Tightens the metadata value object nullability and extracts their mappings
This commit is contained in:
1 parent
89886ebe22
commit
c0302ecc50
13 files changed
+76
-13
No files matched your search
@@ -34,7 +34,7 @@ public class Genre : ValueObject
|
||||
/// <returns>
|
||||
/// An <see cref="Result{TValue}"/> containing either a successfully created <see cref="Genre"/>, or an error message.
|
||||
/// </returns>
|
||||
public static Result<Genre> Create(string? name)
|
||||
public static Result<Genre> Create(string name)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(name))
|
||||
return Errors.Errors.Metadata.GenreNameCannotBeEmpty;
|
||||
|
||||
Reference in new issue
Block a user