public IActionResult GetAll()
        {
            var result = _claimService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }
 public IEnumerable <Claim> GetAll()
 {
     return(claimService.GetAll());
 }
Exemple #3
0
        public async Task <IActionResult> GetAll()
        {
            var claims = await _claimService.GetAll();

            return(Ok(claims));
        }
Exemple #4
0
        // GET: api/authorization
        public IHttpActionResult Get()
        {
            var list = _claimservice.GetAll();

            return(Ok(list));
        }