Ejemplo n.º 1
0
        // 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));
        }
Ejemplo n.º 2
0
        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
            }));
        }
Ejemplo n.º 3
0
        public IActionResult Description(int id)
        {
            var band = service.GetBandById(id);

            return(View(band));
        }