aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-22 14:45:52 +0800
committercrupest <crupest@outlook.com>2019-04-22 14:45:52 +0800
commit407f97db0be86aa071802b67bfdeadc7703528c9 (patch)
tree5dc7ed4618477fb695fc45d26984616ecd5fd74a /Timeline/Services/UserService.cs
parente347b4a4092a24ff7106ffd3aca67d6ca7decca8 (diff)
downloadtimeline-407f97db0be86aa071802b67bfdeadc7703528c9.tar.gz
timeline-407f97db0be86aa071802b67bfdeadc7703528c9.tar.bz2
timeline-407f97db0be86aa071802b67bfdeadc7703528c9.zip
Move http models in to a new namespace. Revert last commit.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r--Timeline/Services/UserService.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs
index a0d358dd..8615d0c5 100644
--- a/Timeline/Services/UserService.cs
+++ b/Timeline/Services/UserService.cs
@@ -40,9 +40,9 @@ namespace Timeline.Services
public enum DeleteUserResult
{
/// <summary>
- /// Succeed to delete user.
+ /// A existing user is deleted.
/// </summary>
- Success,
+ Deleted,
/// <summary>
/// A user of given username does not exist.
/// </summary>
@@ -105,12 +105,12 @@ namespace Timeline.Services
/// <summary>
/// Delete a user of given username.
- /// Return <see cref="DeleteUserResult.Success"/> if success to delete.
+ /// Return <see cref="DeleteUserResult.Deleted"/> if the user is deleted.
/// Return <see cref="DeleteUserResult.NotExists"/> if the user of given username
/// does not exist.
/// </summary>
/// <param name="username">Username of thet user to delete.</param>
- /// <returns><see cref="DeleteUserResult.Success"/> if success to delete.
+ /// <returns><see cref="DeleteUserResult.Deleted"/> if the user is deleted.
/// <see cref="DeleteUserResult.NotExists"/> if the user doesn't exist.</returns>
Task<DeleteUserResult> DeleteUser(string username);
}
@@ -250,7 +250,7 @@ namespace Timeline.Services
_databaseContext.Users.Remove(user);
await _databaseContext.SaveChangesAsync();
- return DeleteUserResult.Success;
+ return DeleteUserResult.Deleted;
}
}
}