public ActionResult DeleteFile(string server, string port, string selectedFile, string checksumFile) { if (selectedFile != null && server != "" && port != "") { string message = ServerHandler.DeleteFile(server, port, selectedFile, path, folderChecksum); TempData["AlertMessage"] = message; } else { TempData["AlertMessage"] = "Fill in template"; } return(RedirectToAction("Index")); }