aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Repositories
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-14 09:40:55 +0200
committertranstrike <transtrike@gmail.com>2021-01-14 09:40:55 +0200
commit5a62952229d784bab73260c6ff76b8d25500bbb4 (patch)
treebcee673bfed07d12caeeb00b22a873a55a93a373 /src/DevHive.Data/Repositories
parentfac00296772803663f76fe89d68bee3d1b406078 (diff)
downloadDevHive-5a62952229d784bab73260c6ff76b8d25500bbb4.tar
DevHive-5a62952229d784bab73260c6ff76b8d25500bbb4.tar.gz
DevHive-5a62952229d784bab73260c6ff76b8d25500bbb4.zip
Renamed async methods to include Async in the name in UserRepository
Diffstat (limited to 'src/DevHive.Data/Repositories')
-rw-r--r--src/DevHive.Data/Repositories/UserRepository.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DevHive.Data/Repositories/UserRepository.cs b/src/DevHive.Data/Repositories/UserRepository.cs
index b4deacd..075ccd3 100644
--- a/src/DevHive.Data/Repositories/UserRepository.cs
+++ b/src/DevHive.Data/Repositories/UserRepository.cs
@@ -75,7 +75,7 @@ namespace DevHive.Data.Repositories
.FirstOrDefaultAsync(x => x.Id == id);
}
- public async Task<User> GetByUsername(string username)
+ public async Task<User> GetByUsernameAsync(string username)
{
return await this._context.Users
.Include(u => u.Roles)
@@ -119,7 +119,7 @@ namespace DevHive.Data.Repositories
return await RepositoryMethods.SaveChangesAsync(this._context);
}
- public async Task<bool> EditUserLanguage(User user, Language oldLang, Language newLang)
+ public async Task<bool> EditUserLanguageAsync(User user, Language oldLang, Language newLang)
{
this._context.Update(user);
@@ -129,7 +129,7 @@ namespace DevHive.Data.Repositories
return await RepositoryMethods.SaveChangesAsync(this._context);
}
- public async Task<bool> EditUserTechnologies(User user, Technology oldTech, Technology newTech)
+ public async Task<bool> EditUserTechnologiesAsync(User user, Technology oldTech, Technology newTech)
{
this._context.Update(user);