public async Task <ActionResult> clubLeuge(string id) { leuge temp = await db.leuges.FindAsync(id); List <team> team = temp.teams.ToList(); return(View(team.ToList())); }
public async Task <ActionResult> DeleteConfirmed(string id) { leuge leuge = await db.leuges.FindAsync(id); db.leuges.Remove(leuge); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "leugeName")] leuge leuge) { if (ModelState.IsValid) { db.Entry(leuge).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(leuge)); }
public async Task <ActionResult> Create([Bind(Include = "leugeName")] leuge leuge) { if (ModelState.IsValid) { db.leuges.Add(leuge); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(leuge)); }
public async Task <ActionResult> Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } leuge leuge = await db.leuges.FindAsync(id); if (leuge == null) { return(HttpNotFound()); } return(View(leuge)); }