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