0
Reply

How to implement web api by passing array as parameter

Sivakumar

Sivakumar

8 years ago
465
Hi,
 
This is my code :
 
[Route("status")]
public Notification UpdateNotificationStatus(int [] NotificationId)
{
throw new NotImplementedException();
} 
 
This is my table :
 
 
 
So when I passing api uri like this : 
/members?notificationid=1,2,3,4 Then update the table
IsRead is true based on by passing NotificationID's.
Using Stored Procedure or Linq to Sql.
Please give me a code for that.

Thank you.