public async Task <IActionResult> DeleteType(int id) { var type = await _typeService.GetTypeById(id); await _typeService.DeleteType(type); return(NoContent()); }
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); }
public ActionResult <AvatarType> Delete(int id) { return(_typeService.DeleteType(id)); }