// The properties of the class must be exactly as in the ACODE
var check = codeService.SaveModel(model, model.Acode /*If new... null*/, CodeType./*The type*/);
if (check.IsFailed)
{
    Mess.boxError(check.F_Print());
    return;
}