public async Task <IActionResult> AddToCart([FromBody] AddToCartRequest request) { var login = jwtHelper.GetClaimsFromToken() .Claims.Single(x => x.Type == "login") .Value; await cart.AddPositionToCart(login, request.BookId); return(Created("http://localhost:49194/api/Cart", new CreatedResponse { Message = "Resource added propperly." })); }