This is my code
@if
(Model.Product.Id != 0 && Model.Product.Id > 0)
{
title = "Edit Product";
}
and it will generate
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Emporium
StackTrace:
at AspNetCoreGeneratedDocument.Views_Product_Upsert.<>c__DisplayClass24_0.<
I am just new to this stuff and I do not what to do

Jignesh KumarRank #91 · 22.9K reputationPosted Jun 30, 2022, 2:44 AM EDT
Danstan Morre7 reputationPosted Jun 30, 2022, 3:03 AM EDT