public ActionResult DeletePhoto(string fullSizePath, string thumbnailPath) { photosModel.DeletePhoto(fullSizePath, thumbnailPath); photosModel.GetPhotos(); return(RedirectToAction("Photos")); }
// Deletes the specific photo, and return to photos page. // <param name="fullUrl">The full URL.</param> public ActionResult DeleteSpecificPhoto(string fullUrl) { photos.DeletePhoto(fullUrl); return(RedirectToAction("Photos")); }
public ActionResult OKClick() { photosModel.DeletePhoto(m_selectedPhoto); return(RedirectToAction("Photos")); }