Get my React and ASP.NET Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=react-and-asp-net-core Get my Angular and ASP.NET Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=angular-and-asp-net-core Get my Entity Framework Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=entity-framework-core-eng Get my Udemy courses with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=all-my-courses
Might be you are using FirstOfDefault method instead use Find(id) and should be work! here is mine is working , i'm using Generics repository : public void Delete(int id) { T exists = _table.Find(id); _table.Remove(exists); }
Get my React and ASP.NET Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=react-and-asp-net-core
Get my Angular and ASP.NET Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=angular-and-asp-net-core
Get my Entity Framework Core course with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=entity-framework-core-eng
Get my Udemy courses with a discount: felipe-gavilan.azurewebsites.net/api/Redireccion?curso=all-my-courses
it's helpful, thank you.
Awesome video Mr.Felipe. waiting for the next 👍
Thank you, it helped me!
Thank you so much!
Great !!!
Thanks a lot 👌
Does it works with code behind file in razor page other than @section script ... in .cshtml.cs file ?
How to use in code behind file
I am trying to delete with Sweet alert. i want to delete a record from a table but it is always deleting the first record
Might be you are using FirstOfDefault method instead use Find(id) and should be work!
here is mine is working , i'm using Generics repository :
public void Delete(int id)
{
T exists = _table.Find(id);
_table.Remove(exists);
}