Public ResultModel order_add ([FromForm] IFormCollection forms)
{
Var model=new model. The orders ();
Return Utils. GetResult (0, "save error occurs during the process of");
}
Just a way to have this warning, how to deal with this warning,
Should be compiled at fault, don't affect the operation of the program, the program is running normal
CodePudding user response:
Var model=new model. The orders ();Change
Var model=new List
Or
The orders of Model
List< instead; Order> The orders=new List
CodePudding user response:
In simple terms, is your Model initialization, but his orders not initialized,We may quote empty abnormalities,