public async Task <ActionResult> Delete(string id) { var deleted = await listingService.Delete(id, UserId()); if (!deleted) { return(BadRequest()); } return(Ok()); }
public void Delete(int id) { listingService.Delete(id); }