public async Task <IActionResult> Index() { //Locatiion Id EntityDTO dto = new EntityDTO() { Id = Guid.Parse(HttpContext.Session.GetString("LocationId")) }; IEnumerable <ReadArtifactDTO> artifacts = await _artifactService.GetAllArtifacts(dto); return(View(artifacts)); }
[AllowAnonymous]/*LocationId*/ public async Task <List <ReadArtifactDTO> > GetAllArtifacts(EntityDTO input) { try { var artifacts = await _artifactService.GetAllArtifacts(input); return(artifacts); } catch (System.Exception e) { throw e; } }