Ejemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] AddWishDTO wishDTO)
        {
            var operationResult = await wishService.AddAsync(wishDTO, this.HttpContext.User.SubjectId());

            return(operationResult.Status == OperationStatus.SUCCESS? CreatedAtAction(nameof(Get), new { id = operationResult.Data.Id }, operationResult) : NotFound(operationResult));
        }