public ActionResult DeleteSystemLog(int?id) { if (id != null) { _repoSystem.DeleteLog(id ?? 0); } else { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } return(RedirectToAction("ViewSystemLog")); }
public IActionResult DeleteSystemLog(int?id) { if (id != null) { _repoSystem.DeleteLog(id ?? 0); } else { return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status400BadRequest)); } return(RedirectToAction("ViewSystemLog")); }