public IActionResult GetAll() { var result = _claimService.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IEnumerable <Claim> GetAll() { return(claimService.GetAll()); }
public async Task <IActionResult> GetAll() { var claims = await _claimService.GetAll(); return(Ok(claims)); }
// GET: api/authorization public IHttpActionResult Get() { var list = _claimservice.GetAll(); return(Ok(list)); }