示例#1
0
        public IHttpActionResult GetAdminByName(string name)
        {
            string userId = ((ClaimsPrincipal)RequestContext.Principal).FindFirst(x => x.Type == "UserId").Value;

            logger.Info($"Admin {userId} Getting admin by admin Name, controller");
            return(Ok(adminsService.GetAdminByName(name)));
        }