File tree 2 files changed +3
-7
lines changed
CheckDrive.Web/CheckDrive.Web/Stores/CheckPoint
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,8 @@ internal sealed class CheckPointStore(CheckDriveApi apiClient) : ICheckPointStor
12
12
public Task < List < CheckPointViewModel > > GetAllAsync ( )
13
13
=> apiClient . GetAsync < List < CheckPointViewModel > > ( _resourceUrl ) ;
14
14
15
- public async Task < CheckPointViewModel > GetCheckPointByIdAsync ( int id )
16
- {
17
- var checkPoint = await apiClient . GetAsync < CheckPointViewModel > ( $ "{ _resourceUrl } /{ id } ") ;
18
-
19
- return checkPoint ;
20
- }
15
+ public Task < CheckPointViewModel > GetByIdAsync ( int id )
16
+ => apiClient . GetAsync < CheckPointViewModel > ( $ "{ _resourceUrl } /{ id } ") ;
21
17
22
18
public List < SelectListItem > GetEnumValues < TEnum > ( ) where TEnum : Enum
23
19
{
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ namespace CheckDrive.Web.Stores.CheckPoint;
6
6
public interface ICheckPointStore
7
7
{
8
8
Task < List < CheckPointViewModel > > GetAllAsync ( ) ;
9
- Task < CheckPointViewModel > GetCheckPointByIdAsync ( int id ) ;
9
+ Task < CheckPointViewModel > GetByIdAsync ( int id ) ;
10
10
List < SelectListItem > GetEnumValues < TEnum > ( ) where TEnum : Enum ;
11
11
}
You can’t perform that action at this time.
0 commit comments