public ActionResult Photos() { tcpClient.Connect(); // try to connect to server Settings.Instance.GetData(); // read settings data PhotosGallery gallery = PhotosGallery.Instance; gallery.CreatePhotosList(Settings.Instance.OutPutDur + '\\' + "Thumbnails"); // generate gallery return(View(gallery.PhotoList)); }
public string RemovePic(string path) { PhotosGallery gallery = PhotosGallery.Instance; return(gallery.RemovePicFromComp(path)); }