Beispiel #1
0
        public async Task <IActionResult> DeleteType(int id)
        {
            var type = await _typeService.GetTypeById(id);

            await _typeService.DeleteType(type);

            return(NoContent());
        }
Beispiel #2
0
        public async Task <IActionResult> DeleteTypes(int pokemonId)
        {
            var type = await _typeService.DeleteType(pokemonId);

            if (!type)
            {
                return(NotFound());
            }
            return(NoContent());
        }
 /// <summary>
 /// 删除商品类型
 /// </summary>
 /// <param name="id"></param>
 public static void DeleteType(long id)
 {
     _typeService.DeleteType(id);
 }
Beispiel #4
0
 public ActionResult <AvatarType> Delete(int id)
 {
     return(_typeService.DeleteType(id));
 }