示例#1
0
        public IActionResult CountAll(int pagesize, int pageNow)
        {
            // var claims = User.Claims.Select(claim => new { claim.Type, claim.Value }).ToDictionary( t => t.Type, t => t.Value);
            // if(claims.ContainsKey("name")){
            // if( claims["name"].Equals("NhanVienTMDT NhanVienTMDT"))
            //     return Forbid();
            // }

            return(Ok(_repository.CountAll()));
        }
示例#2
0
 public IActionResult CountAll(int pagesize, int pageNow)
 {
     return(Ok(_repository.CountAll()));
 }