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