Level/Controllers/LevelController.cs
/// <summary>
/// Save the cart of specific user
/// </summary>
/// <returns></returns>
Save the cart of specific user
Save the cart of specific user
[HttpPost("cart/save")]
        [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(GetAllResponse))]
        public async Task<IActionResult> SaveCart([FromBody] CartPost requestDto)
        {
            var request = new InsertRequest(requestDto);
            var mediator = await _mediator.Send(request);
            return _presenter.GetInsertResult(mediator);
        }
[ HttpPost ( " " ) ] [ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( GetAllResponse ) ) ] public async Task < IActionResult > SaveCart ( [ FromBody ] CartPost requestDto ) { var request = new InsertRequest ( requestDto ) ; var mediator = await _mediator . Send ( request ) ; return _presenter . GetInsertResult ( mediator ) ; }
Save the cart of specific user
Save the cart of specific user
None
CartPost
[FromBody]