Пример #1
0
        public async Task <IActionResult> DeleteType(int id)
        {
            var type = await _typeService.GetTypeById(id);

            await _typeService.DeleteType(type);

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

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