По примеру:
```
const OrgatizationService = require('../services/organization-service');

class OrgatizationController {
    async getAllRecords(req, res) {
        try {
            const list = await OrgatizationService.getAllRecords();
            return res
                .status(200)
                .json(list);
        } catch (e) {
            return res
                .status(500)
                .json(e);
        }
    }

    async createRecord(req, res) {
        try {
            const record = await OrgatizationService.createRecord(req.body);
            return res
                .status(200)
                .json(record);
        } catch (e) {
            return res
                .status(500)
                .json(e);
        }
    }

    async updateRecord(req, res) {
        try {
            const record = await OrgatizationService.updateRecord(req.body);
            return res
                .status(200)
                .json(record);
        } catch (e) {
            return res
                .status(500)
                .json(e);
        }
    }

    async removeRecord(req, res) {
        try {
            const recordId = req.params.id;
            const record = await OrgatizationService.removeRecord(recordId);
            return res
                .status(200)
                .json(record);
        } catch (e) {
            return res
                .status(500)
                .json(e);
        }
    }
}

module.exports = new OrgatizationController()
```
```
const OrganizationModel = require('../models/organization-model');

class OrganizationService {
    /** получить все записи из таблицы "organizations" */
    async getAllRecords() {
        const list = await OrganizationModel.findAll();
        return list;
    }

    /** создать запись в таблице "organizations" */
    async createRecord(payload) {
        const data = await OrganizationModel.create(payload);
        return data;
    }

    /** обновить запись в таблице "organizations" */
    async updateRecord(payload) {
        let record = await OrganizationModel.findOne({ where: { id: payload.id } });
        record.title = payload?.title || record.title;
        record.inn = payload?.inn || record.inn;
        return await record.save();
    }

    /** удалить запись из таблицы "organizations" */
    async removeRecord(recordId) {
        const record = await OrganizationModel.destroy({ where: { id: recordId } });
        return record;
    }
}

module.exports = new OrganizationService();
```
Сделай контроллер для:
```
const DepartmentModel = require('../models/department-model');

class DepartmentService {
    /** получить все записи из таблицы "department" */
    async getAllRecords() {
        const list = await DepartmentModel.findAll();
        return list;
    }

    /** создать запись в таблице "department" */
    async createRecord(payload) {
        const data = await DepartmentModel.create(payload);
        return data;
    }

    /** обновить запись в таблице "department" */
    async updateRecord(payload) {
        let record = await DepartmentModel.findOne({ where: { id: payload.id } });
        if (record) {
            record.name = payload?.name || record.name;
            return await record.save();
        }
        throw new Error('Record not found');
    }

    /** удалить запись из таблицы "department" */
    async removeRecord(recordId) {
        const record = await DepartmentModel.destroy({ where: { id: recordId } });
        return record;
    }
}

module.exports = new DepartmentService();
```