Sivakumar

Sivakumar

  • NA
  • 551
  • 209.9k

How to update table column using linq to sql

Oct 4 2015 2:35 AM
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)