Pull request for the issues

Handle when model null at doRestUpdate and doRestDelete
Handle when data null before saving model
Add validation model before just saving model