public IActionResult Delete([FromQuery(Name = "u")] Guid userId, [FromQuery(Name = "ci")] Guid cartItemId) { cartRepo.DeleteCartItem(userId, cartItemId); return(new OkResult()); }
public bool Delete(int id) { return(cartRepo.DeleteCartItem(id)); }