Ejemplo n.º 1
0
        private async Task <IHttpActionResult> Delete(Guid id)
        {
            if (!await StatusExistsAsync(id))
            {
                return(NotFound());
            }

            await _repository.DeleteByIdAsync(id);

            return(StatusCode(HttpStatusCode.NoContent));
        }