selvi jp

selvi jp

  • NA
  • 323
  • 70.2k

How can i get multile record in web api

May 17 2021 5:44 AM
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)