Resolve all warnings

This commit is contained in:
2023-10-30 22:08:02 +01:00
parent 08983ba30d
commit c337c3dfd5
5 changed files with 16 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ namespace GerbilManagerWebAPI.Controllers
Strength = litterDto.Strength,
Father = this.unitOfWork.GerbilRepository.GetByID(litterDto.Father ?? Guid.Empty),
Mother = this.unitOfWork.GerbilRepository.GetByID(litterDto.Mother ?? Guid.Empty),
Name = litterDto.Name
Name = litterDto?.Name!
};
unitOfWork.LitterRepository.Update(updatedLitter);