Hi @Mouhamed ,
Be sure add the property named NewPizza
in your PizzaModel
:
public class PizzaModel : PageModel
{
public NewPizza NewPizza { get; set; } //be sure add this....
public void OnGet()
{
}
}
Also be sure you have created the model:
public class NewPizza
{
public string Name { get; set; }
public string Size { get; set; }
public int Price{ get; set; }
//.....
}
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Rena