private async Task <IHttpActionResult> Delete(Guid id) { if (!await StatusExistsAsync(id)) { return(NotFound()); } await _repository.DeleteByIdAsync(id); return(StatusCode(HttpStatusCode.NoContent)); }