public IActionResult Delete(int id) { _targetService.Delete(new Target { Id = id }); return(Json(null)); }
public async Task <Target> Delete(Target model) { return(await service.Delete(model)); }