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));
     }
 }
Beispiel #2
0
 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));
     }
 }