Ejemplo n.º 1
0
        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."));
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <NextNodeOption> ProcessNode(Remove_Item node)
 {
     throw new NotImplementedException();
 }