Your onclick event does not put the id you want to pass, here is my demo:
Model:
public class Cat
{
public int Id { get; set; }
public string KategoriAd { get; set; }
public ICollection<TProject> TProjects { get; set; }
}
public class TProject
{
public int Id { get; set; }
public string ResimYolu { get; set; }
public string Baslik { get; set; }
public string İcerik { get; set; }
public int CatId { get; set; }
public virtual Cat Cat { get; set; }
}
Member
180 Points
88 Posts
Re: Asp.Net Core Category - Product
Sep 27, 2019 06:41 AM|Lewis Lu|LINK
Hi Aliyilmaz,
Your onclick event does not put the id you want to pass, here is my demo:
Model:
View:
Controller:
Best Regards ,
Lewis