public IHttpActionResult GetRoles(int pageNumber) { if (pageNumber <= 0) { return(BadRequest("Page number must passed to this api")); } try { return(Ok(_rolesService.GetSystemRoles())); } catch (Exception ex) { return(InternalServerError(ex)); } }