public IActionResult Remove(int?id) { if (id == null) { return(RedirectToAction("Index")); } _campusService.Remove(id); return(RedirectToAction("Index")); }
public async Task Delete(int id) { await _campusService.Remove(id); }