public Response Remove(long id) { _choreService.Remove(id); return(new Response { Body = "success" }); }
public IActionResult Delete(int id) { var chore = _choreService.Get(id); if (chore == null) { return(NotFound()); } _choreService.Remove(chore); return(NoContent()); }