Fix nullable
This commit is contained in:
@@ -10,8 +10,8 @@ namespace GerbilManagerWebAPI.Converter
|
||||
return new LitterDto{
|
||||
Id = litter.Id,
|
||||
Date = litter.Date,
|
||||
Father = litter.Father.AsDto(),
|
||||
Mother = litter.Mother.AsDto(),
|
||||
Father = litter.Father?.AsDto(),
|
||||
Mother = litter.Mother?.AsDto(),
|
||||
Name = litter.Name,
|
||||
Strength = litter.Strength
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user