diff --git a/CheckDrive.Web/CheckDrive.Web/Controllers/DashboardController.cs b/CheckDrive.Web/CheckDrive.Web/Controllers/DashboardController.cs index 2cf1ae39..fa91009e 100644 --- a/CheckDrive.Web/CheckDrive.Web/Controllers/DashboardController.cs +++ b/CheckDrive.Web/CheckDrive.Web/Controllers/DashboardController.cs @@ -1,4 +1,5 @@ -using CheckDrive.Web.Stores.Dashbord; +using CheckDrive.Web.Stores.Cars; +using CheckDrive.Web.Stores.Dashbord; using CheckDrive.Web.ViewModels; using Microsoft.AspNetCore.Mvc; diff --git a/CheckDrive.Web/CheckDrive.Web/Filters/ApiExceptionFilter.cs b/CheckDrive.Web/CheckDrive.Web/Filters/ApiExceptionFilter.cs index bd605287..c7eac8a8 100644 --- a/CheckDrive.Web/CheckDrive.Web/Filters/ApiExceptionFilter.cs +++ b/CheckDrive.Web/CheckDrive.Web/Filters/ApiExceptionFilter.cs @@ -11,7 +11,11 @@ public void OnException(ExceptionContext context) if (context.Exception is ApiException exception) { int statusCode = (int)exception.StatusCode; - context.Result = new RedirectToActionResult("Error", "Home", new { statusCode }); + if (statusCode == 401) + { + context.Result = new RedirectToActionResult("Index", "Auth", new { statusCode }); + } + context.ExceptionHandled = true; } else diff --git a/CheckDrive.Web/CheckDrive.Web/Service/ApiClient.cs b/CheckDrive.Web/CheckDrive.Web/Service/ApiClient.cs index 398edf8d..71791b62 100644 --- a/CheckDrive.Web/CheckDrive.Web/Service/ApiClient.cs +++ b/CheckDrive.Web/CheckDrive.Web/Service/ApiClient.cs @@ -1,5 +1,6 @@ using CheckDrive.Web.Constants; using CheckDrive.Web.Exceptions; +using Microsoft.AspNetCore.Mvc; namespace CheckDrive.Web.Service { diff --git a/CheckDrive.Web/CheckDrive.Web/Views/PersonalDoctorReviews/Index.cshtml b/CheckDrive.Web/CheckDrive.Web/Views/PersonalDoctorReviews/Index.cshtml index 5ed5f377..f1fb89a6 100644 --- a/CheckDrive.Web/CheckDrive.Web/Views/PersonalDoctorReviews/Index.cshtml +++ b/CheckDrive.Web/CheckDrive.Web/Views/PersonalDoctorReviews/Index.cshtml @@ -1,4 +1,6 @@ @model IEnumerable + + @{ ViewData["Title"] = "Index"; @@ -21,6 +23,12 @@ + +
+ + Profildan Chiqish + +
@@ -109,7 +117,6 @@

@ViewBag.PageCount sahifadan @ViewBag.CurrentPage tasi ( umumiy ishchilar soni: @ViewBag.TotalCount)

- @@ -180,4 +187,17 @@ padding-right: 0; padding-left: 0; } + + .text-right { + text-align: right; + } + + .btn-secondary { + background-color: #6c757d; + color: white; + } + + .btn-secondary:hover { + background-color: #5a6268; + } diff --git a/CheckDrive.Web/CheckDrive.Web/Views/Shared/_Layout.cshtml b/CheckDrive.Web/CheckDrive.Web/Views/Shared/_Layout.cshtml index e4291243..9c280753 100644 --- a/CheckDrive.Web/CheckDrive.Web/Views/Shared/_Layout.cshtml +++ b/CheckDrive.Web/CheckDrive.Web/Views/Shared/_Layout.cshtml @@ -29,8 +29,7 @@ -