public async Task <IActionResult> Remove_Item_In_List([FromBody] object update_request_json) { Remove_Item removeitem_command = JsonConvert.DeserializeObject <Remove_Item>(update_request_json.ToString()); bool ok = await _shoppingService.Remove_Item_In_List( removeitem_command.ItemName, User.FindFirstValue(ClaimTypes.NameIdentifier), removeitem_command.ShoppingListId); if (ok) { return(Ok()); } else { return(BadRequest("Remove of item failed. Item not found.")); } }
public IEnumerable <NextNodeOption> ProcessNode(Remove_Item node) { throw new NotImplementedException(); }