app.put('/updatedesignations/:id', async (req,res) => {
try{
const updateUser =await MykhojDesignation.update({
DesignationName: req.body.DesignationName,
},
{where: {DesignationID : req.params.id} });
res.send(updateUser);
}catch(error){
res.status(500). send('An error occurred while adding the designation.');
}
})