public void SaveManualClassification(ManualClassificationSaveRequest SaveRequest) { this.OutputFolder = ConfigurationManager.AppSettings["OutputFiles"].ToString(); this.ImagesFolderPath = Path.Combine(OutputFolder, SaveRequest.BatchName, "Images"); this.UpdatedPages = (from q in SaveRequest.pages where q.OriginalName != q.UpdatedName select q).ToList(); for (int i = 0; i < this.UpdatedPages.Count; i++) { if (this.UpdatedPages[i].IsUpdated == false) { string SourceImage = Path.Combine(ImagesFolderPath, UpdatedPages[i].OriginalName); string DestinationImage = Path.Combine(ImagesFolderPath, UpdatedPages[i].UpdatedName); this.UpdatedPages[i].IsUpdated = true; this.moveFiles(SourceImage, DestinationImage); } } }
public HttpResponseMessage SaveManualClassification(ManualClassificationSaveRequest SaveRequest) { iClassificationService.SaveManualClassification(SaveRequest); return(Request.CreateResponse(HttpStatusCode.OK, "Saved successfully")); }