// GET: Band/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Band band = ss.GetBandById(id); if (band == null) { return(HttpNotFound()); } return(View(band)); }
public async Task <IActionResult> Edit(Guid id) { var band = await _service.GetBandById(id); if (band == null) { return(RedirectToAction(nameof(Index))); } return(View(new EditBand { Name = band.Name })); }
public IActionResult Description(int id) { var band = service.GetBandById(id); return(View(band)); }