public async Task <ActionResult> DeleteConfirmed(decimal id) { APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES = await db.APP_VI_CONTRIBUTIONS_FILES.FindAsync(id); db.APP_VI_CONTRIBUTIONS_FILES.Remove(aPP_VI_CONTRIBUTIONS_FILES); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <IHttpActionResult> GetAPP_VI_CONTRIBUTIONS_FILES(decimal id) { APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES = await db.APP_VI_CONTRIBUTIONS_FILES.FindAsync(id); if (aPP_VI_CONTRIBUTIONS_FILES == null) { return(NotFound()); } return(Ok(aPP_VI_CONTRIBUTIONS_FILES)); }
public async Task <ActionResult> Edit([Bind(Include = "CONTRIBUTION_FILE_ID,CONTRIBUTION_ID,PATH,CONTENT_TYPE")] APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES) { if (ModelState.IsValid) { db.Entry(aPP_VI_CONTRIBUTIONS_FILES).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.CONTRIBUTION_ID = new SelectList(db.APP_VI_CONTRIBUTIONS, "CONTRIBUTION_ID", "DESCRIPTION", aPP_VI_CONTRIBUTIONS_FILES.CONTRIBUTION_ID); return(View(aPP_VI_CONTRIBUTIONS_FILES)); }
public async Task <IHttpActionResult> PostAPP_VI_CONTRIBUTIONS_FILES(APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } db.APP_VI_CONTRIBUTIONS_FILES.Add(aPP_VI_CONTRIBUTIONS_FILES); await db.SaveChangesAsync(); return(CreatedAtRoute("DefaultApi", new { id = aPP_VI_CONTRIBUTIONS_FILES.CONTRIBUTION_FILE_ID }, aPP_VI_CONTRIBUTIONS_FILES)); }
// GET: AppContributionsFiles/Details/5 public async Task <ActionResult> Details(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES = await db.APP_VI_CONTRIBUTIONS_FILES.FindAsync(id); if (aPP_VI_CONTRIBUTIONS_FILES == null) { return(HttpNotFound()); } return(View(aPP_VI_CONTRIBUTIONS_FILES)); }
public async Task <IHttpActionResult> DeleteAPP_VI_CONTRIBUTIONS_FILES(decimal id) { APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES = await db.APP_VI_CONTRIBUTIONS_FILES.FindAsync(id); if (aPP_VI_CONTRIBUTIONS_FILES == null) { return(NotFound()); } db.APP_VI_CONTRIBUTIONS_FILES.Remove(aPP_VI_CONTRIBUTIONS_FILES); await db.SaveChangesAsync(); return(Ok(aPP_VI_CONTRIBUTIONS_FILES)); }
// GET: AppContributionsFiles/Edit/5 public async Task <ActionResult> Edit(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES = await db.APP_VI_CONTRIBUTIONS_FILES.FindAsync(id); if (aPP_VI_CONTRIBUTIONS_FILES == null) { return(HttpNotFound()); } ViewBag.CONTRIBUTION_ID = new SelectList(db.APP_VI_CONTRIBUTIONS, "CONTRIBUTION_ID", "DESCRIPTION", aPP_VI_CONTRIBUTIONS_FILES.CONTRIBUTION_ID); return(View(aPP_VI_CONTRIBUTIONS_FILES)); }
public async Task <IHttpActionResult> PutAPP_VI_CONTRIBUTIONS_FILES(decimal id, APP_VI_CONTRIBUTIONS_FILES aPP_VI_CONTRIBUTIONS_FILES) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != aPP_VI_CONTRIBUTIONS_FILES.CONTRIBUTION_FILE_ID) { return(BadRequest()); } db.Entry(aPP_VI_CONTRIBUTIONS_FILES).State = EntityState.Modified; try { await db.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!APP_VI_CONTRIBUTIONS_FILESExists(id)) { return(NotFound()); } else { throw; } } return(StatusCode(HttpStatusCode.NoContent)); }