if (params.id) {
        nwdaysCalendar.findById(params.id)
        .then(document => {

            if (null === document) {