C Sharp - Linq - GetValueOrDefault

.GetValueOrDefault()

Actually, I think this is a property of a Long data type. If null then it will return 0

Sample

1
return new Result().ReturnFail(isValidUpdateCategoryResult.Model.Id.GetValueOrDefault(), isValidUpdateCategoryResult.Message.FriendlyMessage);