Exemple #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var result = await avengerDomain.DeleteAsync(id);

            if (!result)
            {
                return(NotFound());
            }
            return(Ok(true));
        }
Exemple #2
0
        public async Task <IActionResult> Delete([FromODataUri] int key)
        {
            var result = await avengerDomain.DeleteAsync(key);

            if (!result)
            {
                return(NotFound());
            }
            return(Ok(true));
        }
Exemple #3
0
 /// <summary>
 /// DeleteAsync
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public async Task <bool> DeleteAsync(string id)
 {
     return(await avengerDomain.DeleteAsync(id));
 }