// GET: Rollen/Details/5 public async Task <IActionResult> Details(int?id) { RolDTO rolDTO = null; if (id.HasValue) { rolDTO = await _rolRepository.GetByIdAsync(id.Value); } else { return(NotFound()); } return(View(rolDTO)); }