Exemplo n.º 1
0
        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());
        }