常用方法
常用方法
常用方法
常用方法
public IHttpActionResult GetAdminByUsername(string username) { string userId = ((ClaimsPrincipal)RequestContext.Principal).FindFirst(x => x.Type == "UserId").Value; logger.Info($"Admin {userId} Getting admin by admin UserName, controller"); return(Ok(adminsService.GetAdminByUserName(username))); }