working in restful base controller