public ActionResult DeleteConfirmed(string id) { SETUP setup = db.SETUPs.Find(id); db.SETUPs.Remove(setup); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /SETUPAdmin/Details/5 public ActionResult Details(string id = null) { SETUP setup = db.SETUPs.Find(id); if (setup == null) { return(HttpNotFound()); } return(View(setup)); }
public ActionResult Edit(SETUP setup) { if (ModelState.IsValid) { db.Entry(setup).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(setup)); }
public ActionResult Create(SETUP setup) { if (ModelState.IsValid) { db.SETUPs.Add(setup); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(setup)); }
private static void HelpOnHelp() { Add("The command syntax for requesting additional help with NuGetHandler is:"); Add(); Add(" NuGetHandler -h <subject>"); Add(); Add("where <subject> is the desired section of help to be acquired. Given that the"); Add("length of some of the subject matter is quite long, it is recommended that the"); Add("output of the help system be piped to a text file for later review."); Add(); Add("Some subjects will also yield the actual settings as derived from values"); Add("present on the command line and from the various app.*.config files."); Add(@"To cause those values to be displayed, a verbosity value of ""detailed"""); Add("to the command line e.g. -v detailed"); Add(); Add("The list of subjects follows:"); Add(HelpSections.ToString()); SectionBreak("Content of help sections"); Add($"{"<none>".PadItRight()}The program summary plus this help description."); Add(); Add($"{ALL.PadItRight()}Generate the entire help content (best"); Add($"{String.Empty.PadItLeft()}redirected to a file for further perusal)."); Add(); Add($"{APP_CONFIG_SETTINGS.PadItRight()}Just the information as found in the appSettings"); Add($"{String.Empty.PadItLeft()}portion of the app.config file and its possible"); Add($"{String.Empty.PadItLeft()}app.optional.config files."); Add(); Add($"{APP_CONFIG_NUSPEC_DOTNET.PadItRight()}Just the information as found in the"); Add($"{String.Empty.PadItLeft()}DotNetNuSpecSettings section of the app.config"); Add($"{String.Empty.PadItLeft()}file and its possible app.optional.config files."); Add(); Add($"{APP_CONFIG_NUSPEC_NUGET.PadItRight()}"); Add($"{String.Empty.PadItLeft()}NuGetNuSpecSettings section of the app.config file"); Add($"{String.Empty.PadItLeft()}and its possible app.optional.config files."); Add(); Add($"{COMMAND_LINE.PadItRight()}Help on the command line switches and named value"); Add($"{String.Empty.PadItLeft()}pairs plus the command line introduction."); Add(); Add($"{COMMAND_LINE_SWITCHES.PadItRight()}Help on just the command line switches."); Add(); Add($"{COMMAND_LINE_NAMED_VALUES.PadItRight()}Help on just the command line named values."); Add(); Add($"{COMMAND_SEQUENCE.PadItRight()}Complete list of commands and their respective"); Add($"{String.Empty.PadItLeft()}command line parameters as supported in"); Add($"{String.Empty.PadItLeft()}NuGetHandler"); Add(); Add($"{COMMAND_SEQUENCE_DOTNET_CORE.PadItRight()}Just the command sequence that supports .net Core"); Add($"{String.Empty.PadItLeft()}projects (dotnet.exe)"); Add(); Add($"{COMMAND_SEQUENCE_NUGET.PadItRight()}Just the command sequence that supports full"); Add($"{String.Empty.PadItLeft()}framework projects (nuget.exe)"); Add(); Add($"{COMMAND_SEQUENCE_DOTNET_STANDARD.PadItRight()}Just the comnmand sequence that supports .net"); Add($"{String.Empty.PadItLeft()}standard projects (dotnet.exe)"); Add(); Add($"{CONFIG_INFO.PadItRight()}Display the settings for the final app.config,"); Add($"{String.Empty.PadItLeft()}command line calculated values and other"); Add($"{String.Empty.PadItLeft()}information as determined by the program when"); Add($"{String.Empty.PadItLeft()}executed. If a project was designated,"); Add($"{String.Empty.PadItLeft()}the processed project information will be"); Add($"{String.Empty.PadItLeft()}displayed."); Add(); Add($"{ENVIRONMENT.PadItRight()}Help and content for the program environment."); Add(); Add($"{HELP.PadItRight()}This help description."); Add(); Add($"{NUGET_PUSH.PadItRight()}The combined information concerning the locations"); Add($"{String.Empty.PadItLeft()}(Push Repositories) of the various nuget servers"); Add($"{String.Empty.PadItLeft()}and the corresponding destinations (Push"); Add($"{String.Empty.PadItLeft()}Destinations) that match the repositories."); Add(); Add($"{NUGET_PUSH_REPOS.PadItRight()}Just the information on the nuget server"); Add($"{String.Empty.PadItLeft()}repositories"); Add(); Add($"{NUGET_PUSH_DESTINATIONS.PadItRight()}Just the information on the nuget server"); Add($"{String.Empty.PadItLeft()}repository destinations."); Add(); Add($"{POSTBUILD.PadItRight()}Emit the necessary code that should be placed"); Add($"{String.Empty.PadItLeft()}in the Post-Build event section of the properties"); Add($"{String.Empty.PadItLeft()}of a given project."); Add(); Add($"{SETUP.PadItRight()}How to prepare to install the NuGetHandler"); Add($"{String.Empty.PadItLeft()}program."); Add(); Add($"{SUMMARY.PadItRight()}Just the summary information for the NuGetHandler"); Add($"{String.Empty.PadItLeft()}program."); Add(); Add($"{TOKENS.PadItRight()}Help on the replaceable tokens as found in the"); Add($"{String.Empty.PadItLeft()}app.config file."); Add(); }