[HttpDelete("{id}", Name = "DeleteTodoItem")]
public async Task RemoveTodoItem(int id)
{
// TODO
// Use EF Core to remove the item based on id
throw new NotImplementedException();
}
< /code>
Это код ошибки, который я получаю, когда пытаюсь запустить программу < /p>
httprequestexception: Сначала необходимо сначала реализовать API Endpoint.
candidate.web.services.candidateapi.removetodoitem(int id) в candidateapi.cs < /p>
< /blockquote>
}
catch (Exception ex)
{
throw new HttpRequestException("You must first implement the API endpoint.");
}
throw new HttpRequestException("You must first implement the API endpoint.");
< /code>
Не совсем уверен, как это сделать. Я пытался использовать переменную deletetodoitem
Меня попросили обновить API и реализовать RemoveToDoItem из следующего кода: [code][HttpDelete("{id}", Name = "DeleteTodoItem")] public async Task RemoveTodoItem(int id) { // TODO // Use EF Core to remove the item based on id
throw new NotImplementedException(); } < /code> Это код ошибки, который я получаю, когда пытаюсь запустить программу < /p>
httprequestexception: Сначала необходимо сначала реализовать API Endpoint. candidate.web.services.candidateapi.removetodoitem(int id) в candidateapi.cs < /p> < /blockquote> } catch (Exception ex) { throw new HttpRequestException("You must first implement the API endpoint."); }
throw new HttpRequestException("You must first implement the API endpoint."); < /code> Не совсем уверен, как это сделать. Я пытался использовать переменную deletetodoitem [/code], но не повезло.