Skip to content

Commit 9efbc72

Browse files
authored
Merge pull request #252 from DiyorMarket/CheckPoints
Check points
2 parents ed6232b + 47d1176 commit 9efbc72

File tree

10 files changed

+44
-403
lines changed

10 files changed

+44
-403
lines changed

CheckDrive.Web/CheckDrive.Web/Controllers/CheckPointController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public CheckPointController(ICheckPointStore checkPointStore)
1010
{
1111
_checkPointStore = checkPointStore ?? throw new ArgumentNullException(nameof(checkPointStore));
1212
}
13-
public ActionResult Index(int id)
13+
public async Task<ActionResult> Index(int id)
1414
{
15-
var checkPoint = _checkPointStore.GetCheckPointById(id);
15+
var checkPoint = await _checkPointStore.GetCheckPointByIdAsync(id);
1616

1717
return View(checkPoint);
1818
}

CheckDrive.Web/CheckDrive.Web/Controllers/HomeController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CheckDrive.Web.Stores.Dashbord;
1+
using CheckDrive.Web.Stores.Dashboard;
22
using Microsoft.AspNetCore.Mvc;
33

44
namespace CheckDrive.Web.Controllers;

CheckDrive.Web/CheckDrive.Web/Extensions/DependencyInjection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using CheckDrive.Web.Stores.Auth;
1010
using CheckDrive.Web.Stores.Cars;
1111
using CheckDrive.Web.Stores.CheckPoint;
12-
using CheckDrive.Web.Stores.Dashbord;
12+
using CheckDrive.Web.Stores.Dashboard;
1313
using CheckDrive.Web.Stores.Debts;
1414
using CheckDrive.Web.Stores.DispatcherReviews;
1515
using CheckDrive.Web.Stores.Dispatchers;

CheckDrive.Web/CheckDrive.Web/Stores/Auth/AuthStore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public sealed class AuthStore(CheckDriveApi clientApi, ICookieHandler cookieHand
99
{
1010
public async Task<TokenResponse> LoginAsync(LoginRequest request)
1111
{
12-
TokenResponse response = await clientApi.PostAsync<LoginRequest, TokenResponse>("auth/login", request);
12+
var response = await clientApi.PostAsync<LoginRequest, TokenResponse>("auth/login", request);
1313

1414
cookieHandler.UpdateTokens(response.AccessToken, response.RefreshToken);
1515

0 commit comments

Comments
 (0)