Esempio n. 1
0
  // GET: Team/Edit/5
 public async Task<ActionResult> Edit(TeamViewModel teamViewModel,int id)
  {
      teamViewModel.ActionName = "Edit";
      await teamViewModel.PopulateData(id);
      return View(teamViewModel);
  }
Esempio n. 2
0
 // GET: Team/Details/5
 public async Task<ActionResult> Details(int id, TeamViewModel teamViewModel)
 {
     await teamViewModel.PopulateData(id);
     return View(teamViewModel.Team);
 }
Esempio n. 3
0
 // GET: Team/Create
 public async Task<ActionResult> Create(TeamViewModel teamViewModel)
 {
     teamViewModel.ActionName = "Create";
     await teamViewModel.PopulateData();
     return View(teamViewModel);
 }
Esempio n. 4
0
 // GET: Team/Delete/5
 public async Task<ActionResult> Delete(TeamViewModel teamViewModel,int id)
 {
     await teamViewModel.PopulateData(id);
     return View(teamViewModel.Team);
 }