1
Answer

How to update table column using linq to sql

Sivakumar

Sivakumar

9y
450
1
Hi,
 
This is my table :
 
 
 
This is my controller :
 
[HttpGet]
[Route("Read")]
//api/notifications/read
public int ReadNotification(int NotificationId)
{
return _notification.ReadNotification(NotificationId);
} 
 
When I call this controller change the IsRead column is 1
 
Please give me linq to sql query for that.
 
Thank you.
Answers (1)