public async Task <IActionResult> Delete(int?id) { if (id == null || id < 1) { return(NotFound()); } await phongBanRepository.Delete(id); return(new NoContentResult()); }
public bool Delete(string id) { return(_res.Delete(id)); }
public async Task <IActionResult> Delete(int?id) { if (id == null || id < 1) { return(NotFound()); } await phongBanRepository.Delete(id); return(new NoContentResult()); }
public bool Delete(string id) { return(_res.Delete(id)); }