3
Answers

How can i get multile record in web api

selvi jp

selvi jp

3y
445
1
here upload multiple upload file with same id .i want to show multiple record imagename field.but only one record is display.if i pass id 3.then 4 record will disply bcoz 4 record is storing in the upload id 4 .
  1. public ImageUpload Get(int id)  
  2. {  
  3.     using (WebApiDatabaseEntities dbContext = new WebApiDatabaseEntities())  
  4.     {  
  5.         return dbContext.ImageUploads.FirstOrDefault(e => e.UploadId == id);  
  6.     }  
  7. }  
Answers (3)