0
Answer

How to implement web api by passing array as parameter

Sivakumar

Sivakumar

9y
470
1
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.