Sivakumar

Sivakumar

  • NA
  • 551
  • 218.5k

How to implement web api by passing array as parameter

Oct 1 2015 10:45 AM
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.