示例#1
0
        public async Task <IActionResult> Delete()
        {
            int currentUserId = this.GetCurrentUserId();

            User user = await _userDataSource.Delete(currentUserId);

            if (user == null)
            {
                return(NotFound());
            }

            return(Ok());
        }