public static List<ImageDetail> GetImages() { List<ImageDetail> imageDetails = new List<ImageDetail>(); ApplicantSurveyApp applicantSurveyApp = new ApplicantSurveyApp(); string serverPath = applicantSurveyApp.GetLocalPath(); imageDetails = applicantSurveyApp.GetImagesFromDirectory(HttpContext.Current.Server.MapPath(serverPath), serverPath); return imageDetails; }