Beispiel #1
0
        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));
        }
Beispiel #2
0
        [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;
            }
        }