public void It_Should_Execute() { ReportsEngModule.New(); ReportsNorModule.New(); ReportsEngUtvModule.New(); ReportsNorUtvModule.New(); DataSetModule.New(); DataSourceModule.New(); IntegrationPacksModule.New(); BatchModule.New(); DeploymentModule.New(); SqlModule.New(); InformationModule.New(); ZipModule.New(); ReportingModule.New(); SsisModule.New(); AllModule.New(); EnglishExtendedModule.New(); EnglishStandardModule.New(); NorwegianExtendedModule.New(); NorwegianStandardModule.New(); var startpoint = CommandHandlerContainer.New().Resolve <StartpointAll>(); startpoint.Start(); }
public async Task <ActionResult> DeleteConfirmed(int id) { AllModule allModule = await db.AllModules.FindAsync(id); db.AllModules.Remove(allModule); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
private static void Init() { ReportingModule.New(); SsisModule.New(); AllModule.New(); EnglishExtendedModule.New(); EnglishStandardModule.New(); NorwegianExtendedModule.New(); NorwegianStandardModule.New(); }
public async Task <ActionResult> Create([Bind(Include = "Mid,Cid,Chid,Name,Description,Video,File,Type")] AllModule allModule, HttpPostedFileBase file, Helper help) { if (ModelState.IsValid) { allModule.File = help.uploadfile(file); db.AllModules.Add(allModule); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.Cid = new SelectList(db.FullCourses, "Cid", "Name", allModule.Cid); ViewBag.Lid = new SelectList(db.AllLessons, "Chid", "Name", allModule.Chid); return(View(allModule)); }
// GET: Auth/AllModules/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AllModule allModule = await db.AllModules.FindAsync(id); if (allModule == null) { return(HttpNotFound()); } return(View(allModule)); }
// GET: Auth/AllModules/Edit/5 public async Task <ActionResult> Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AllModule allModule = await db.AllModules.FindAsync(id); ViewBag.Cid = new SelectList(db.FullCourses, "Cid", "Name", allModule.Cid); ViewBag.Lid = new SelectList(db.AllLessons, "Chid", "Name", allModule.Chid); img = allModule.File; if (allModule == null) { return(HttpNotFound()); } return(View(allModule)); }
protected override void Act() { AllModule.New(); }