Esempio n. 1
0
        public async Task <ActionResult <IEnumerable <Mapping> > > Get([FromRoute] string userEmail, [FromRoute] int surveyId, [FromQuery] int?textId)
        {
            var mappings = await _mappingService.GetAllMappingsForSurvey(userEmail, surveyId, textId);

            if (mappings == null)
            {
                return(NotFound(mappings));
            }

            return(new ObjectResult(mappings)
            {
                StatusCode = 200
            });
        }