Beispiel #1
0
        public virtual async Task <IActionResult> Delete(TKey id)
        {
            if (!await Crud.DeleteAndSaveAsync(id))
            {
                return(NotFound());
            }

            return(new NoContentResult());
        }
Beispiel #2
0
        //[HttpDelete("{id}")]
        public virtual async Task <ActionResult> Delete(TKey id)
        {
            if (!await Crud.DeleteAndSaveAsync(id))
            {
                return(HttpNotFound());
            }

            return(new EmptyResult());
        }