Changed Domain specific code to call domain specific model methods.

- Changed Add/Edit/Delete specific code to use Domain specific methods calls.
- Changed code that sets priority order of all domains to call model method that save priorites of domains.
- Removed unnecessary calls to transaction from add/edit namespace save methods.