コード例 #1
0
        public IActionResult Fetch(
            [FromHeader(Name = AuthProperties.HEADER_AUTH_ID)] string userId,
            [FromHeader(Name = AuthProperties.HEADER_AUTH_PASSOWRD)] string userPassword)
        {
            var result   = _fetchUseCase.Execute(userId, userPassword);
            var response = DreamsMapper.Map(result);

            return(new JsonResult(response));
        }
コード例 #2
0
        public IActionResult Save(
            [FromHeader(Name = AuthProperties.HEADER_AUTH_ID)] string userId,
            [FromHeader(Name = AuthProperties.HEADER_AUTH_PASSOWRD)] string userPassword,
            [FromBody] DreamProperties properties)
        {
            var result   = _saveUseCase.Execute(userId, userPassword, properties);
            var response = DreamsMapper.Map(result);

            return(new JsonResult(response));
        }