Beispiel #1
0
        public async Task <ActionResult <Mapping> > Get([FromRoute] string userEmail, [FromRoute] int surveyId, [FromRoute] int mappingId)
        {
            var mapping = await _mappingService.GetSurveyMappingAsync(userEmail, surveyId, mappingId);

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

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