diff options
author | crupest <crupest@outlook.com> | 2019-04-22 14:45:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-22 14:45:52 +0800 |
commit | a2d8695d1e46d271bab40ea192afffee65f7538f (patch) | |
tree | 5dc7ed4618477fb695fc45d26984616ecd5fd74a /Timeline/Services/UserService.cs | |
parent | 0920d6ca8d8f92e612148aa1d3c4eaea5f407d94 (diff) | |
download | timeline-a2d8695d1e46d271bab40ea192afffee65f7538f.tar.gz timeline-a2d8695d1e46d271bab40ea192afffee65f7538f.tar.bz2 timeline-a2d8695d1e46d271bab40ea192afffee65f7538f.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.cs | 10 |
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; } } } |