public async Task <ActionResult> Delete(Guid id) { if (!ModelState.IsValid) { return(BadRequest()); } var signature = await _signatureService.GetAsync(id); if (signature != null) { await _signatureService.DeleteAsync(id); return(NoContent()); } return(NotFound()); }