示例#1
0
 public IActionResult DeleteUser(Guid userId)
 {
     try
     {
         var user = _personalUsersService.GetUserByUserId(userId);
         if (user == null)
         {
             return(NotFound());
         }
         _personalUsersService.DeleteUser(userId);
         return(NoContent());
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }