public IActionResult Post(int listId, [FromBody] ValueViewModel data) { return(Ok(new IdViewModel() { Id = _todoService.AddItem(listId, data.Value), })); }
public IActionResult Post(int listId, [FromBody] ValueViewModel data) { return(Ok(new IdViewModel() { Id = _todoService.AddItem(listId, data.Value), })); }