Ejemplo n.º 1
0
        public async Task <IActionResult> Edit(Guid shelterId)
        {
            ViewBag.Shelters = await _shelterRepo.GetAll();

            if (shelterId.Equals(Guid.Empty))
            {
                return(View(new Shelter()));
            }
            else
            {
                return(View(await _shelterRepo.GetById(shelterId)));
            }
        }