public ActionResult EditSystemLog(int?id) { if (id != null) { var obj1 = _repoSystem.GetLog(id ?? 0); if (obj1 != null) { return(View(obj1)); } else { return(HttpNotFound()); } } else { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } }
public IActionResult EditSystemLog(int?id) { if (id != null) { var obj1 = _repoSystem.GetLog(id ?? 0); if (obj1 != null) { return(View(obj1)); } else { return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status404NotFound)); } } else { return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status400BadRequest)); } }