public async Task <IHttpActionResult> Delete(int id) { var result = await service.Delete(id); if (!result) { return(NotFound()); } return(Ok()); }