コード例 #1
0
 public string DeleteUser([FromForm] string user)
 {
     if (_userService.DeleteUser(user))
     {
         var username = HttpContext.User.Claims.First(c => c.Type == ClaimTypes.Email).Value;
         _userService.CreateUserActivity(username, "Admin deleted a customer " + DateTime.Now);
         return("Deleted");
     }
     return("Error");
 }