// DELETE: api/State/5 public bool Delete(int id) { HttpRequestHeaders headers = Request.Headers; bool hardDelete = false; if (headers.Contains("hard_delete")) { hardDelete = bool.Parse(headers.GetValues("hard_detete").First()); } return(id > 0 && _stateServices.Delete(id, hardDelete)); }
public async Task Delete(int id) { await _service.Delete(id); }