public IHttpActionResult GetById(int id) { Role role = _roleService.GetById(id); if (role == null) { return(NotFound()); } return(Ok(role)); }